KERNEL_FORMAT_DATA_VAR

Previous Advanced Options of TIGCC Next

In nostub mode, if you put

#define KERNEL_FORMAT_DATA_VAR
at the beginning of the program, and the data section is put into an external data variable, references into the data variable will be stored in the same manner as kernel programs store references. This does not mean that your program will need a kernel to run. Currently, this is the default.

This feature uses the linker-specific symbol __ld_insert_kernel_data_refs.


See also: MLINK_FORMAT_DATA_VAR, COMPRESSED_FORMAT_DATA_VAR