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

ARM Keywords

Note: This was originally posted on 9th July 2013 at http://forums.arm.com

Hi,

I am new to the ARM world. In one of the sample program that , i found some architectural conditions as below..


#if (defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_6__) || defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__))
  .equ  ARM_V5TE_COMPATIBLE,  1
#else
  .equ  ARM_V5TE_COMPATIBLE,  0
#endif

#if (defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7R__))
  .equ  ARM_V7_COMPATIBLE,   1
#else
  .equ  ARM_V7_COMPATIBLE,   0

Is __ARM_ARCH_5TE__ ,  __ARM_ARCH_6__ words are keywords for any cross compiler?
I am using DS-5   arm-none-linux-gnueabi-gcc compiler version 4.5.1
[size=2] Please give your ideas. Thanks in advance..[/size]
Parents
  • Note: This was originally posted on 11th July 2013 at http://forums.arm.com

    Hi scott,
     
       Did you know where [color=#222222][font=Arial, Helvetica, sans-serif][size=2]__ARM_ARCH_7A__ [/size][/font][/color]macros defined( under which plat forms, cpu ).  I think it must be under armv7. so i used [size=3]-mcpu=cortex-a8[/size] [size=3]-mlittle-endian -march=armv7-a for building application , Still  [/size][color=#222222][font=Arial, Helvetica, sans-serif][size=2]__ARM_ARCH_7A__,[/size][/font][/color]__ARMEL__[color=#222222][font=Arial, Helvetica, sans-serif][size=2] [/size][/font][/color][color=#222222][font=Arial, Helvetica, sans-serif] not available in assembly code. Do you have any idea about this ??[/font][/color]
Reply
  • Note: This was originally posted on 11th July 2013 at http://forums.arm.com

    Hi scott,
     
       Did you know where [color=#222222][font=Arial, Helvetica, sans-serif][size=2]__ARM_ARCH_7A__ [/size][/font][/color]macros defined( under which plat forms, cpu ).  I think it must be under armv7. so i used [size=3]-mcpu=cortex-a8[/size] [size=3]-mlittle-endian -march=armv7-a for building application , Still  [/size][color=#222222][font=Arial, Helvetica, sans-serif][size=2]__ARM_ARCH_7A__,[/size][/font][/color]__ARMEL__[color=#222222][font=Arial, Helvetica, sans-serif][size=2] [/size][/font][/color][color=#222222][font=Arial, Helvetica, sans-serif] not available in assembly code. Do you have any idea about this ??[/font][/color]
Children
No data