ARM Technical Support Knowledge Articles

INDENTIFY UNCALLED LIBRARY ROUTINES

Applies to: C51 C Compiler

Answer


Information in this article applies to:


QUESTION

I have an application where I am getting several Linker warnings:

*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
    SEGMENT: ?PR?_EPROMWRITE?I2C

It appears that the segments refer to some library code that is indeed not called. Is there a way to verify that?

Also what do I need to do to remove these warnings.

ANSWER

You can verify the usage of functions using the linker cross reference listing section which is enabled in uVision under Project - Options - Listing - Linker Listing - Cross Reference.

For libraries it is important that each function that can be used individually gets its own source module. Structure your library this way to remove the warnings.

MORE INFORMATION

SEE ALSO

Article last edited on: 2007-01-08 13:24:48

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential