cancel
Showing results for 
Search instead for 
Did you mean: 

Register allocation

stefanodimascio9
Associate II
Posted on February 15, 2016 at 13:06

Hello, 

I'm using SPC5 studio with the high-tec tool chain for SPC56EL70L5. I'd need to set the linker in such a way that one out of 32 general purpose register won't be never used by the compiler because I need it for some assembly code lines. Could you tell me what kind of directives do I have to use?

Thank you in advance for the help
1 REPLY 1
Erwan YVIN
ST Employee
Posted on February 22, 2016 at 15:25

Hello Stefano ,

i do not know if Hightec can handle that.

the simplest way is to Save/Restore  registers that you use ..

  Best regards

          Erwan