
Dear Drasko DRASKOVIC,
In message 5ec3d7930907130700h24ab20c3t258e2c31e21bb71f@mail.gmail.com you wrote:
there is a reason why I use r10 (and why somebody used r8, I suppose) - I
Well, that's easy - as the code has to interface with GCC generated code, you have to stick with GCC's register usage conventions.
And one thing I also noted that is strange a variable of "register volatile". I played around with arm gcc compiler - does this volatile stuff really have some effect? Compiler seems to produce asm code like it is not volatile (optimize by deleting conditions, assign values by add and not mov, etc...)
"register volatile" makes sense only for the special case of global or local register variables. Whether or not it is implemented in a specific version of GCC for a specific architecture is another story; please ask this on the GCC mailing list.
Best regards,
Wolfgang Denk