Skip to main content
stefanodimascio9
Associate III
February 15, 2016
Question

Register allocation

  • February 15, 2016
  • 1 reply
  • 663 views
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
    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    February 22, 2016
    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