RFC: Idea for code size reduction

michael trimarchi@gandalf.sssup.it
Fri Mar 7 11:15:00 GMT 2008


Hi,
Philipp Marek wrote:
> Hello everybody,
>
> I have a feature request.
>
> and my scripts emit space savings of about 30kB.  Now that's not
> that much, but for embedded systems it means another userspace
> binary more.
>   [ If anyone's interested, I can post my scripts here ... they're not
>     that large. ]
>
> And, of course, the same can be used for other binaries too - which could
> save other space as well.  (blender-bin, text size 8664025, gives 97KB
> savings)
>
>
> I'd imagine the use that such:
> - Built the binary
> - Run my scripts, to find some common code sequences
> - Give them to gcc
> - Rebuild, using the optimizations
>
> I don't know whether some new optimize switch could be used, to do all
> that internally in the compiler and linker.
>
>
> What do you think about that?
> [ Please keep at least *me* cc'ed - don't know whether that's that
>   interesting for linux-tiny. ]
>
>
> Regards,
>
> Phil
>
>
>   
Can I test your script in my embedded system?
Can you send to me?

Michael



More information about the Gcc mailing list