This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Global Register Coloring and Inline Assembly

Quite often I'll code some of my modules entirely in A51 assembly and, to be thorough, I always fill out the $REGUSE statement for all functions. A module written like this will then provide the necessary information to the compiler for global register optomization.

I've never used inline assembly that much, but recently I did a test where I coded one function with inline assembly. Upon inspection of the resulting SRC file, I can find no $REGUSE statements, and it appears all references to any other C functions in the module have been removed from the .OCR file.

Does this mean that including any inline assembly in a C module excludes all functions in the module from global register optomization ?

Parents Reply Children