RFC: Idea for code size reduction
Philipp Marek
philipp@marek.priv.at
Fri Mar 7 11:40:00 GMT 2008
Hello Michael!
> Can I test your script in my embedded system?
> Can you send to me?
Here you are.
code_overlap.pl - disassembles a binary, and outputs a list
(address, name, instruction, bytes) to STDOUT.
bytes_saved.pl - takes such a list, and tries to estimate
the amount of bytes that could be saved.
I normally use them this way:
#!/bin/sh
perl code_overlap.pl "$@" > overlap.txt
perl bytes_saved.pl
Which just outputs the number of bytes.
Hope that helps ... please let my know whether that works for you.
Regards,
Phil
--
Versioning your /etc, /home or even your whole installation?
Try fsvs (fsvs.tigris.org)!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bytes_saved.pl
Type: application/x-perl
Size: 843 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080307/88c0d9a1/attachment.pl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code_overlap.pl
Type: application/x-perl
Size: 1192 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20080307/88c0d9a1/attachment-0001.pl>
More information about the Gcc
mailing list