Re: RedHat Toolchain for small chips

nick clifton <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <[email protected]>
Hi Emil,
> However when I try to compile simple programs for small chips it seems just
> the runtime takes up more SRAM than the chip has.

Have you tried turning on linker garbage collection ?  This should make 
the linker discard unused bits of code (eg most of newlib).  So for example:

   msp430-elf-gcc -mmcu=msp430g2231 -Os -static -Wall -Wextra simple.c -o
simple.elf -Wl,-gc-sections


Cheers
   Nick


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&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.