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.

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 assembler generates code for the S3 core as default. Note that all modules of your application must use the same --core option.

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.

This option also sets the value of the predefined symbol __CORE__, see Predefined symbols. Note that specifying --core=s2s3 sets the value of __CORE__ to S2.

Caution

To set related options, select:

Project>Options>General Options>Target>Device