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

How to run AArch32 code in DS-5 AArch64?

Hi,

I installed DS-5 64-bit version in windows, but i received 32-bit code which is running on AArch32 without any issue , and it's not running on my machine with AArch64 DS-5, is there any setting which i can do to run the same code without any changes? or do i need to do any code changes in 32-bit code to run on 64-bit DS-5?

 

Thanks,

Divya.

Parents Reply Children
  • When i am trying to compile A32 instructions in DS-5 using Cortex-A53 FVP, i am getting compilation issues as "Error: instruction mnemonic is not supported". If i replace A32 instructions with equivalent A64 instructions in my code, code is working fine. So, to compile my code, i am changing A32 instructions into their equivalent A64 instructions. Is there any other alternative for this?
  • Hi, 

    This is an obvious problem as some of the instructions are not supported by the 64-bit ARM DS-5 compiler. The solution is to install support for 32-bit ARM compiler(ex:armcc) in your DS-5 environment and then compile your code using that compiler but I think you will need license for that. An another way is to use open source arm-gcc compiler which has support for almost all 32-bit instructions except for few. So you may need to modify your code a little bit for that.   

  • So you are trying to build code to run on the A53 FVP.

    Are you building using the assembler (ie files full of ASM code) or are you using inline assemble in C like this?

     

    void func()

    {

      _asm("str x0,[x1]");

    }

    What tool-chain are you using, gcc, armcc, clang?

  • Hi Peter,
    I am using assembly code only.(files full of asm code).
    I am not using inline assembly code.

    I am using ARM Compiler 6 tool chain.

    Thanks,
    Divya.
  • Okay. I will do it.

    Thanks,
    Divya.