Re: Optimization, remove unused code from Image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)
*****************************



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux