Optimization, remove unused code from Image
Sriharsha
sriharsha.v@redpinesignals.com
Tue Jan 11 11:17:00 GMT 2005
I guess you only have the option of re-compiling your source code with
the option:
-Wunused-function
You cannot directly modify a binary file for what you intend to do.
Sriharsha.
Labermeier Norbert wrote:
>Hi all,
>
>I'd like to remove unused code from my embedded binary image, but I
>didn't succeed find the right compiler/linker switch.
>With unused code I talk about functions which are not called but part of
>a source file.
>
>Main target for me is to reduce code size.
>
>I'm currently working with a PPC and GCC-2.96 from VxWorks.
>
>I've already tested with -Os to reduce size but I didn't succeed to
>remove the unused functions.
>
>Can anybody give me some hints.
>
>Kind regards,
>
>Norbert
>
>
>
>
>
>
>
--
*****************************
* Sriharsha Vedurmudi
* Software Engineer
*
* Redpine Signals Inc.
* Gate #395, Plot 87,88
* Sagar Society, Road #2,
* Banjara Hills,
* Hyderabad - 500 034
* www.redpinesignals.com
*
* +91-40-23559911 (Office)
* +91-98491-33133 (Mobile)
*****************************
More information about the Gcc-help
mailing list