Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
ARM Keywords
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
2667 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
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
Sreenath P V
over 12 years ago
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]
Scott Douglass
over 12 years ago
Cancel
Vote up
0
Vote down
Cancel
Sreenath P V
over 12 years ago
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]
Cancel
Vote up
0
Vote down
Cancel
Scott Douglass
over 12 years ago
Note: This was originally posted on 11th July 2013 at
http://forums.arm.com
If you're calling gcc to build the asm file then you can use either the filename suffix or the -x option to control whether the asm is preprocessed or not:
http://gcc.gnu.org/o...ll-Options.html
Cancel
Vote up
0
Vote down
Cancel