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]>
>     Great news and thank you for the update, is it possible to throw
> somewhere the Windows binaries? I think it is time for fresh windows
> binaries, the last one was back in December.

Sorry, I don't work for TI, so I can't make them do a release or say
anything about their schedule or intentions.  All I do is maintain the
port in the FSF source tree.

Also, please keep in mind that this is a patch that's still a
work-in-progress, subject to change, etc.  Certainly not a supported
or official thing yet.

> or some nice documentation on how I can build the msp-elf RH tools
> myself.

Note: msp430-elf, not msp-elf

The answer here is "the same way you build any other cross toolchain."
There's nothing magic about he msp430-elf tools, assuming you know how
to build a cross toolchain at all.  If not, you're probably going to
be frustrated, but in case you want to try anyway...

Basically (and substituate your real paths as desired):

P="--prefix=/usr/local"
T="--target=msp430-elf"

export PATH=/usr/local/bin:$PATH

cd $binutilsworkdir
$somewhere/binutils-sources/configure $P $T
make
make install

cd $gccworkdir
$somewhere/gcc-sources/configure $P $T --with-newlib --enable-languages=c,c++
make all-host
make install-host

cd $newlibworkdir
$somewhere/newlib-sources/configure $P $T
make
make install

cd $gccworkdir
make all-target
make install-target

------------------------------------------------------------------------------
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.