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
  • Well I did, but I get error as I already mention before:
    : error: use of undeclared identifier 'PRESERVE8'

    The code is like that:

    void test(void)
    {
       PRESERVE8;

       __asm(
       
          "THUMB"

          "PUSH {r0-r3,lr}"
    ...
    I am compiling using the armclang.
    I am also going through the armclang user manual, reference, but did not found anything yet.
    Thanks for the answer, Iknerf
Reply
  • Well I did, but I get error as I already mention before:
    : error: use of undeclared identifier 'PRESERVE8'

    The code is like that:

    void test(void)
    {
       PRESERVE8;

       __asm(
       
          "THUMB"

          "PUSH {r0-r3,lr}"
    ...
    I am compiling using the armclang.
    I am also going through the armclang user manual, reference, but did not found anything yet.
    Thanks for the answer, Iknerf
Children