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

PRESERVE8 equivalent instruction in ARM Compiler 6

Hi,

I am trying to migrate my project to ARM compiler 6.19 from an older version (5.xx). 

In Compiler 5.xx, I know that the asm instruction "PRESERVE8" is used to specify that the current file preserves the eight-byte alignment of the stack. 

This instruction is causing a linker error and I couldn't find any translation in the document "Migrate ARM Compiler 5 to ARM Compiler 6" or any other online forum.

How do I rewrite this instruction compatible with ARM Compiler 6? Is there any documentation available that describes how to resolve this issue? 

Any help is much appreciated. Thank you

Parents
  • Hello Ronan,


    Thank you for this information, but where exactly I need to put this line? I tried to put it into the 

    __attribute__((naked)) ... but is not working, also inside the __asm () and get error. Must I change this "Tag_ABI_align_preserved" and put some number there?

    Best regards, Iknerf

Reply
  • Hello Ronan,


    Thank you for this information, but where exactly I need to put this line? I tried to put it into the 

    __attribute__((naked)) ... but is not working, also inside the __asm () and get error. Must I change this "Tag_ABI_align_preserved" and put some number there?

    Best regards, Iknerf

Children