Besides defines from the C standards, the compiler creates the following
#defines:
#define
|
Description
|
---|---|
Always defined. Version number string (e.g. SDCC_3_2_0 for sdcc
3.2.0).
|
|
SDCC
|
OBSOLETE. WILL BE REMOVED IN THE FUTURE. CURRENTLY Only defined for
the mcs51 backend (and only if –std-cXX is not used). This macro has
been available since SDCC 2.5.6 and is the version number as an int
(ex. 256). PLEASE USE OTHER VERSION MACROS INSTEAD!
|
depending on the model used (e.g.: -mds390). Older versions used SDCC_mcs51,
etc instead.
|
|
when —stack-auto option is used
|
|
when —model-small is used
|
|
when —model-medium is used
|
|
when —model-large is used
|
|
when —model-huge is used
|
|
when —xstack option is used
|
|
when -mds390 is used
|
|
when -mds390 is used
|
|
__SDCC_VERSION_MAJOR
|
Always defined. SDCC major version number. E.g. 3 for SDCC 3.5.0
|
__SDCC_VERSION_MINOR
|
Always defined. SDCC minor version number. E.g. 5 for SDCC 3.5.0
|
__SDCC_VERSION_PATCH
|
Always defined. SDCC patchlevel version number. E.g. 0 for SDCC 3.5.0
|
Always defined. SDCC svn revision number. Older versions of sdcc used
SDCC_REVISION instead.
|
|
when —parms-in-bank1 is used
|
|
when —all-callee-saves is used
|
|
when —float-reent is used
|
|
when —int-long-reent is used
|
|
when —opt-code-speed is used
|
|
when —opt-code-size is used
|