[En-Nut-Discussion] Don't use the const attribute for non pointer arguments

Moritz Struebe morty at gmx.net
Tue Mar 25 21:02:13 CET 2008


Hi there,

I just read the coding style documentation. It says "*Don't use the 
const attribute for non pointer arguments"* but I don't think that's 
right. As far as I know avr-gcc puts the first 4 bytes of the arguments 
in registers. Therefore might be possible that it does help to optimize 
the code. Does anyone know anything about this, before I start researching?

Cheers
Morty



More information about the En-Nut-Discussion mailing list