Hi,
I'm using TIs ARM compiler for AM3358 CPU and currently optimise existing code for speed. Now there is a variable that can be eiter "1" or "-1" (defining a direction). This variable is used for addition only (evaluating the position dependent on direction).
So what results in faster code: when I use a "signed char" for this variable (which is shorter and saves memory) or when I use a "signed int" (which has same width like data bus and does not result in odd address access)?
The whole software is bare-metal and has a size of 130 kBytes, so it should run from internal cache completely.
Thanks!