Skip to main content

IAR Embedded Workbench for RL78 5.20.x

--core

In this section:
Syntax
--core={s1|s2|s3|s2s3}
Parameters

s1

Generates code for S1, the RL78 core with only one register bank and a multiplexed 8-bit bus.

s2

Generates code for S2, the core without instructions to support a hardware multiplier/divider.

s3 (default)

Generates code for S3, the core with instructions to support a hardware multiplier/divider.

s2s3

Generates code that is compatible with both the S2 and the S3 core. Specifying --core=s2s3 sets the value of the preprocessor symbol __CORE__ to S2.

Description

Use this option to select the processor core for which the code will be generated. If you do not use the option to specify a core, the compiler generates code for the S3 core as default. Note that all modules of your application must use the same core.

Note

Use --core=s2s3 to generate libraries that can be linked with either S2 or S3 cores. It should not be used to generate an executable file.

The compiler supports all RL78 microcontroller cores and derivatives based on these cores.

Caution

Project>Options>General Options>Target>Core