Technical Support

BL51: WARNING 15 (MULTIPLE CALL TO SEGMENT)


Information in this article applies to:

  • C51 Version 5.50

QUESTION

When I attempt to link my program, the linker responds with the following diagnostic:

WARNING L15:  MULTIPLE CALL TO SEGMENT
SEGMENT:  segment-name
CALLER1:  segment-name
CALLER2:  segment-name

ANSWER

The specified segment is called from two levels, CALLER1 and CALLER2; e.g., main and an interrupt function.

This has the same effect as a recursive call and may thus lead to the overwriting of parameters or data. If you are calling a function from a main level and an interrupt level, the main level segment is reported as c_startup which is defined in the startup file (NOT main). This can cause some confusion as the segment name isn't defined by the user and the source file name may be unclear.

MORE INFORMATION

SEE ALSO

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure