Register use in C compiler


i'm porting time-hungry app bare avr arduino. original asm code processed time-critical data in registers (via timer interrupt call @ fclk/256). load once, run in registers until reset, no calls ram inside isr.

is there way instruct arduino compiler not use specific registers?

or, alternatively, there registers never used compiler default? ones?

you have pass -ffixed-reg option compiler (e.g., -ffixed-reg=r7) i'm not sure of how you'd within arduino gui (if it's possible). may better off compiling command line.

--
check out our new shield: http://www.ruggedcircuits.com/html/gadget_shield.html


Arduino Forum > Forum 2005-2010 (read only) > Software > Development > Register use in C compiler


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums