Go Down

Topic: Large installation on Mac OS X (Read 1 time) previous topic - next topic

jims

The arduino-0007 installer for mac os x has unstripped avr development tools and duplicates of many of the tools in tools/avr/avr/bin. That could be slimmed down by about a factor of four by stripping and eliminating duplicates.

mellis

Sounds like a good idea.  

So the binaries in tools/avr/avr/bin are just duplicates of the ones in tools/avr/bin but without the "avr-" extension?  If so, do you know why does the build process for the avr toolchain create both?  

How does one go about stripping the binaries?  What does it do?

jims

#2
Mar 22, 2007, 08:58 pm Last Edit: Mar 22, 2007, 09:08 pm by jims Reason: 1
I'll check the build process tonight. I haven't built from source yet.

kg4wsv

Quote
How does one go about stripping the binaries?  What does it do?


Code: [Select]
bash$ strip exefile

It removes symbol information (useful for debugging and profiling, but can make executables much larger).

The whole installed directory is only 91Mb on my system, IMO negligible in terms of disk usage.

-j

mellis

Yea, 91 MB isn't too bad on todays (dozens of gigabytes) harddrives, but the download (~30 MB) can be annoying for those with a slow internet connection.  So if there's an easy way to reduce the size (e.g. stripping the executables or removing duplicates), I think it's probably worthwhile.

Any idea if those binaries are really duplicates?

Go Up