Using the workbench it is possible to see which register is assigned to a variable. Debug the program and in the window that shows the source code, switch in assembly mode. (that's the button with the two little squares one green and one yellow). There you can search the name of the variable to find the assigned register. It will be something like <varname>:<reg> You can even right click on the name to add a watch on the register. Note, that a variable may be mapped somewhere else and not in a register. I hope I provided some help. Yannis Haritakis, Foundation Of Research and Technology Hellas, FORTH
Hello! I have encountered some problems on debugging C source code under the Workbench. I want to 'examine' or 'deposit' the C defined variable in transator's command output window. For instance, ex f0.reg.reg_name_0 While the compiler won't generate the symbol representing the variable, I can only use the following instead: ex f0.reg.@b31
We know that the C compiler provide global_label function to preserve the C label. Is there any similar solution to the variable?!
Thanks a lot. And thanks for your attention.