Next: 4. Notes on supported Up: 3. Using SDCC Previous: 3.18 Pragmas Contents Index

# 3.19 Defines Created by the Compiler

The compiler creates the following #defines:

#define | Description
--- | ---
SDCC | Always defined. Since version 2.5.6 the version number as an int (ex. 256)
SDCC_mcs51 or SDCC_ds390 or SDCC_z80, etc. | depending on the model used (e.g.: -mds390)
__mcs51, __ds390, __hc08, __z80, etc | depending on the model used (e.g. -mz80)
SDCC_STACK_AUTO | when --stack-auto option is used
SDCC_MODEL_SMALL | when --model-small is used
SDCC_MODEL_MEDIUM | when --model-medium is used
SDCC_MODEL_LARGE | when --model-large is used
SDCC_USE_XSTACK | when --xstack option is used
SDCC_STACK_TENBIT | when -mds390 is used
SDCC_MODEL_FLAT24 | when -mds390 is used

Next: 4. Notes on supported Up: 3. Using SDCC Previous: 3.18 Pragmas Contents Index