Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Copy Running a Program on the Target Compiling and Linking with On Time RTOS-32 |
CopyTo create ROMable programs, some entities must be copied from ROM to RAM before a program can run. In particular, this is true for initialized data. The Locate Copy command instructs RTLoc to create a copy of an entity already given in the configuration file. Optionally, the copy can be compressed to save ROM or disk space. Compression is used if decompression code and data are also located and compression has not been disabled using option -c-. Locate parameter Name specifies the entity to copy. Example:Locate Section DATA LowMem Locate Copy DATA MyEPROM Here, section DATA is allocated in region LowMem. However, the data associated with section DATA is placed in Region MyEPROM and copied to LowMem before the application is started. Locate parameter Size is ignored. The only Access value supported is SysRead (which is also the default). For the program's data, the Locate Copy command must be used to make the program ROMable. However, Locate Copy can be used for any program entity that has data associated with it. For code, this can be advantageous if the installed RAM is faster than ROM. If the code is copied from ROM to RAM (and consequently executed from RAM), the program will run faster. During the development phase of a program, copied entities can significantly reduce download times.
|