« Reply #1 on: 28 / July / 2011, 23:15:15 »
I remove CTHUMB flag and compile all the way to ARM and optimize -Os.
The ARM code is 299KB instead of 238KB in interwork therefore about 17% bigger but it works very well. I like the ARM generated assembler.
I didn't enable all optional compiling flags like PTP, Sokoban, ... but could I anticipate limiting effects compiling in ARM ?
Actually that's 25% larger, and memory is the main reason for using Thumb code.
On the cameras released so far this year the available Canon heap memory is even more limited - the SX220 and IXUS 310 will only work reliably in EXMEM, and even that is quite limited (only around 768K available for the IXUS 310).
Phil.

Logged
CHDK ports:
sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
g12 (1.00c, 1.00e, 1.00f & 1.00g)
sx130is (1.01d & 1.01f)
ixus310hs (1.00a & 1.01a)
sx40hs (1.00d, 1.00g & 1.00i)
g1x (1.00e, 1.00f & 1.00g)
g5x (1.00c, 1.01a, 1.01b)
g7x2 (1.01a, 1.01b, 1.10b)