avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] refactoring to reduce code size


From: Alex Shepherd
Subject: [avr-gcc-list] refactoring to reduce code size
Date: Wed, 29 Jan 2003 17:34:23 +1300

Hi Guys,

I am in the process of writing some code to run in a Mega8, however I will
probably run out of FLASH before I fit in all the features I would like.

In an effort to try and find the biggest functions, I have tried looking at
the list files that the compiler produces but alas I find them a bit hard to
follow and after the optimiser has rearranged things I find it hard to
recognise which does what and wonder if there are any other tools that I can
use to more easily determine the sizes of functions etc to maybe highlight
where I should look first. Hopefully I can find some obvious things to free
up space.

I would also appreciate any other suggestions about the sorts of things to
do or avoid doing to generally reduce code size or how others go about
analysing code on embedded systems to reduce code space.

Having come from coding on bigger machines (PCs) I may well be doing some
expensive (code size wise) things that I need to change.

Cheers

Alex Shepherd

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]