User`s manual

338 digi.com
__DynamicC__
This macro identifies the Dynamic C compiler, e.g:
#ifdef __DynamicC__
// conditional code goes here
#endif
may be used in a portable application to enclose conditional code that
applies only to Rabbit targets.
DEBUG_RST
Go to the Compiler tab of Project Options and click on the “Advanced”
button at the bottom of the dialog box. Check “Include RST 28
instructions” to set DEBUG_RST to 1. Debug code will be included
even if #nodebug precedes the main function in the program.
__FILE__
The compiler substitutes this macro with the current source code file
name as a character string literal.
_FAST_RAM_
These are used for conditional compilation of the BIOS to distinguish
between the three options:
• compiling to and running in flash
• compiling to and running in RAM
• compiling to flash and running in RAM
The choice is made in the Compiler tab of Project Options. The default
is compiling to and running in flash.
The BIOS defines FAST_RAM_COMPILE, FLASH_COMPILE and
RAM_COMPILE. These macros are defined to 0 or 1 as opposed to the
corresponding compiler-defined macros which are either defined or not
defined. This difference makes possible statements such as:
#if FLASH_COMPILE || FAST_RAM_COMPILE
Setting FAST_RAM_COMPILE limits the flash file system size to the
smaller of the following two values: 256K less the SystemID/User
Blocks reserved area; the sum of the completely available flash sectors
between the application code/constants and the SystemID/User Blocks
reserved area.
_FLASH_
_RAM_
_FLASH_SIZE_
These are used to set the MMU registers and code and data sizes
available to the compiler. The values of the macros are the number of 4K
blocks of memory available.
_RAM_SIZE_
__LINE__
The compiler substitutes this macro with the current source code line
number as a decimal constant.
NO_BIOS
Boolean value. Tells the compiler whether or not to include the BIOS
when compiling to a .bin file. This is an advanced compiler option
accessible by clicking the “Advanced” button on the Compiler tab in
Project Options.
Table A-1. Macros Defined by the Compiler
Macro Name Definition and Default