Binary Size: function-sections, data-sections, etc.

Trass3r un at known.com
Tue Dec 20 11:45:53 PST 2011


On Tuesday, 20 December 2011 at 19:36:19 UTC, Marco Leise wrote:
> Nice of you to start some discussion on these flags. I use them 
> myself (and a few others that seem to affect code size) in a 
> 'tiny' target inside the D Makefile I use.
> Currently it looks like this:
>
> 	dmd <sources,directory,bin> -m32 -O -release -noboundscheck 
> -L--strip-all -L-O1 -L-znodlopen -L-znorelro 
> -L--no-copy-dt-needed-entries -L--relax -L--sort-common 
> -L--gc-sections -L-lrt -L--as-needed
> 	strip <bin> -R .comment -R .note.ABI-tag -R .gnu.hash -R 
> .gnu.version -R .jcr -R .got
>
> That's not even funny, I know :D

How far down do you get in terms of size with this?


More information about the Digitalmars-d mailing list