Thank you very much! But is there a method to preserve the register name before the compilation?
Do you mean to instruct the compiler to use a specific register for a variable ? For example "use @a34 to store fsm_state" ?? No this is not possible. All allocations are done by the compiler. This is true even for assembly code thath is embedded in a microC source file. You can only instruct the compiler that you want a specific variable to be placed in a register. Which ever register the compiler wants. I remember some cases where eventhough I had used the __declspec(gp_reg) for a variable, the compiler kept on mapping it to the scratch with no complains/error messages. If you encounter this problem too, then mosto probably it'll be another compiler bug. Yannis Charitakis, FORTH Foundation of Research and Technology, Hellas