Re: msp430-elf size optimizations - some notes and a patch

DJ Delorie <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <[email protected]>
> Er, that reminds me, I missed some stuff in the doc about removing
> Java support... sigh.

I added this:


Lastly, there's a GCC option -minrt that tells gcc to use a "minimum
runtime" for programs that do not need static initializers or
constructors (popular in C++ and Java). Note that this is different
than initialized data (like "int j = 5;"), this is for functions that
need to be called before main() is. You can also forcibly remove the
extra language support in your linker script by discarding anything
from crtbegin/crtend:

  /DISCARD/ : { *crtbegin*.o(*) *crtend*.o(*) }

Don't forget to take out the KEEP's for crtbegin/end too, though ;-)


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.