| KERNEL_FORMAT_RELOCS

Previous | Advanced Options of TIGCC | Next

In nostub mode, if you put

    #define KERNEL_FORMAT_RELOCS

at the beginning of the program, relocation entries will be stored and relocated in the same manner as kernel programs do it. This does not mean that your program will need a kernel to run. The kernel format for relocation information is always smaller than the native TIOS format, but the relocation code will take up a few bytes. You need to see for yourself whether using it makes the program smaller.
This feature uses the linker-specific symbol __ld_insert_kernel_relocs.

See also: MLINK_FORMAT_RELOCS, COMPRESSED_FORMAT_RELOCS