_GENERIC_ARCHIVE

Previous Advanced Options of GCC4TI Next

If you are writing a function archive (also known as a static library), you will probably want to write:

#define _GENERIC_ARCHIVE
at the top of every C file that includes a header file from the GCC4TI Library. It tells the GCC4TI Library that you are creating a function archive (static library) which you want programs to be able to use no matter what their compiler, GCC4TILIB, linker and output format settings are. It disables all optimizations which rely on startup code, and it makes the library use a kernel-independent ROM call mechanism. It also disables outputting of any linker control symbols which force a specific output format.

All static libraries should use this option unless they are created for a very specific program (which implies you are probably better off linking the files directly into your project). However, some special features of the GCC4TI Library may not be available.