| ||||||||
Technical Support Support Resources Product Information | BL51: WARNING L16 (UNCALLED SEGMENT) ?C_INITSEGInformation in this article applies to:
QUESTIONI have written my own startup sequence, but now I keep getting the following linker warning:
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?C_INITSEG
What is the problem? ANSWERThe uncalled segment, ?C_INITSEG, is the name given to the global variable initialization code. This segment is automatically included when a program with initialized global or static variables. For example:
int i = 5; // this generates an INITSEG table entry
int test (void) {
return (i);
}
RAM variable initializations generate table entries in the ?C_INITSEG segment. ?C_INITSEG is called at the end of the startup code to initialize global variables. Then, the main C function is invoked. It seems that the ?C_INITSEG segment was included in the program linkage but was never invoked. There are several ways to solve this problem:
MORE INFORMATION
SEE ALSO
FORUM THREADSThe following Discussion Forum threads may provide information related to this topic. Last Reviewed: Friday, November 16, 2007 | |||||||
| ||||||||