The PRINT directive specifies the name of the listing file. If no PRINT directive is specified the listing file is given the name of the generated object file with a .M51 extension.
RAMSIZE Linker DirectiveAbbreviation RS Arguments RAMSIZE (bytes) Default RAMSIZE (128) µVision This information is automatically set using information from the Device Database. Description
The RAMSIZE directive specifies the number of bytes of DATA and IDATA in your target 8051 device. The number of bytes specified must be between 64 and 256.
Note
- The information needed to specify correct values for the RAMSIZE directive may be found in the device data sheet. Many data sheets refer to the DATA and IDATA memory as on-chip RAM. However, some devices have additional on-chip RAM that is mapped into XDATA memory space. Since the size of DATA and IDATA is limited to 256 bytes, if the on-chip RAM of your 8051 derivative is more than 256 bytes some of that RAM is most likely accessed as XDATA. Review your device data sheet carefully.
DEFINE Compiler Directive
Abbreviation DF Arguments One or more names (in accordance with the naming conventions of the C language) separated by commas. An optional value may be assigned to each name. Default None. µVision Options — C51 — Define. Description
The DEFINE directive defines preprocessor symbols on the compiler command line. This is equivalent to using the #define directive in your program source code. You may use the #if, #ifdef, and #ifndef preprocessor directives to query names defined with the DEFINE directive.
Defined names are copied exactly as they are entered and are case-sensitive. Each name may be assigned a value.
Note
- The DEFINE directive may be specified only on the command line. Use the C preprocessor #define directive to define symbols inside a C source file.
- The DEFINE directive may not be used to define preprocessor macros.