Example
Copy current directory
c:\Freescale\CW MCU v10.5\MCU\DSP56800x_EABI_Tools\command_line_tools\
to
c:\Program Files (x86)\Freescale\CodeWarrior for DSC56800E v8.3\DSP56800x_EABI_Tools\command_line_tools\
When build in IDE, CodeWarrior v8.3 does not run the command line tools under:
c:\Freescale\CW MCU v10.5\MCU\DSP56800x_EABI_Tools\command_line_tools\
Hi Fiona
How to determine at compile time memory model ? DCS Codewarrior
To accesses all data by 24-bit addressing modes:
If you build with command line tool, please use -largedata option.
If you build in CodeWarrior IDE, please open target settings by 'ALT'+'F7', and go to Code Generation -> M56800E Processor panel, enable option Large Data Model
The question is not set addressing modes . How to determine the memory model at compile time ?
#if(MEMORY_MODEL)
/* Large Memory Model defines */
#define LoadRx move.l
#define StoreRx move.l
#define TestRx tst.l
#define PTR_SIZE 2
#else
/* Small Memory Model defines */
#define LoadRx moveu.w
#define StoreRx move.w
#define TestRx tst.w
#define PTR_SIZE 1
#endif
Answer himself. Рredefined masros __m56800E_lmm__
#if __m56800E_lmm__
/* Large Memory Model defines */
#define LoadRx move.l
#define StoreRx move.l
#define TestRx tst.l
#define portPOINTER_SIZE_TYPE unsigned portLONG
#else
/* Small Memory Model defines */
#define LoadRx moveu.w
#define StoreRx move.w
#define TestRx tst.w
#define portPOINTER_SIZE_TYPE unsigned portSHORT
#endif