Home |
RTTarget-32 Programming Manual Running Win32 Programs without Win32 Running a Program on the Target Running with or without Paging Installing Hardware Interrupt Handlers Catching NULL Pointer Assignments Running without Run-Time System Configuration for Debug and Release Builds Loading DLLs through a File System Using the MetaWINDOW Graphics Library Custom MP Floating Pointer Structure Compiling and Linking with On Time RTOS-32 |
Running without Run-Time SystemRTTarget-32 fully supports the run-time systems of the supported compilers. This simplifies porting programs that use the run-time system extensively. However, there is some overhead involved. Depending on the application's use of the run-time system, up to 100k of memory can be required to support it. Simple applications that don't need the heap can be significantly reduced in size if the run-time system is eliminated. However, all calls to run-time system functions (such as malloc, free, printf, etc.) must be removed. Section Compiling and Linking with On Time RTOS-32 explains how RTTarget-32's special startup code can be used to eliminate the compiler's run-time system. Advantages of the Run-Time System
Benefits of running without a Run-Time System
RTTarget-32 does not support eliminating the Delphi run-time system for Pascal programs. However, due to Delphi's smart linker, the Pascal run-time system's size can be next to negligible. If unit SysUtils is not used, the Delphi run-time system does not allocate any heap space for its internal housekeeping. Generally, the use of the run-time system is recommended. It should be eliminated only if low resource requirements must be met.
|