Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 NTSection Running a Program on the Target Compiling and Linking with On Time RTOS-32 |
NTSectionNTSections are similar to Sections. However, RTLoc will make sure the relative offsets of the sections are not changed. Example:Region MyRAM 1M 3M RAM Assign Locate NTSection CODE MyRAM Locate NTSection DATA MyRAM If, for example, the PE file specifies section CODE to start at address 20000h and section DATA at 30000h, RTLoc will ensure that DATA is located exactly 10000h after CODE. This strategy of mapping is highly compatible with the method used by Win32. If you intend to use source-level debugging, Locate NTSection must be used instead of Locate Section. The exact syntax for the Name parameter is identical to the Locate Section command (see previous section). The disadvantage of NTSections is that all NTSections must be located in the same region and that more address space is used if the linker uses a generous alignment (e.g., Borland C++ 4.5 uses 64k alignment). However, wasted RAM can be recovered if FillRAM is used. Programs located using NTSections are ROMable only if used with the Locate Copy command for all sections or if located to a virtual region. Generally, command Locate NTSection is recommended over Locate Section (see also section Advanced Topics, Choosing a Locate Method).
|