From: Philipp K. K. <pk...@sp...> - 2012-01-04 14:02:28
|
AFAIK, the hc08 has a 16 bit stack pointer and instructions for addressing relative to the stack pointer, that make stack-pointer-relative addressing as fast and compact (for 16 bit offsets) or even better (for 8 bit offsets, which should apply for the vast majority of auto variables) as absolute addressing. So AFAIK, with always allcoating on the stack (as it is in the z80, gbz80, z180 and r2k ports) we would gain ROM, RAM and reentrancy. Would there be any drawbacks to removing the --stack-auto option for hc08 and always allocating auto variables on the stack? Philipp |