Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
force gcc to NOT use thumb?
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
10103 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
force gcc to NOT use thumb?
Etienne SOBOLE
over 12 years ago
Note: This was originally posted on 11th December 2010 at
http://forums.arm.com
Hi.
I'm using a Beagleboard with gcc
I'm looking for the parameter to use to ask gcc to not use thumb instruction !!!
does anybody know hox I con do that?
Thank's
Etienne
Parents
Etienne SOBOLE
over 12 years ago
Note: This was originally posted on 11th December 2010 at
http://forums.arm.com
Hum.
-marm seems to work thank's
but I still have some interrogation
I have tried this command
gcc -S -marm add.c
an the code produced is
.arch armv7-a
...
.file "add.c"
.text
.align 2
.global add
.type add, %function
add:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
...
bx lr
.size add, .-add
.ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5"
.section .note.GNU-stack,"",%progbits
My problem is about the
bx lr instruction.
Bx intruction Does it not supposed to swap between ARM and thumb mode ?
Etienne
Cancel
Vote up
0
Vote down
Cancel
Reply
Etienne SOBOLE
over 12 years ago
Note: This was originally posted on 11th December 2010 at
http://forums.arm.com
Hum.
-marm seems to work thank's
but I still have some interrogation
I have tried this command
gcc -S -marm add.c
an the code produced is
.arch armv7-a
...
.file "add.c"
.text
.align 2
.global add
.type add, %function
add:
@ args = 0, pretend = 0, frame = 8
@ frame_needed = 1, uses_anonymous_args = 0
@ link register save eliminated.
...
bx lr
.size add, .-add
.ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5"
.section .note.GNU-stack,"",%progbits
My problem is about the
bx lr instruction.
Bx intruction Does it not supposed to swap between ARM and thumb mode ?
Etienne
Cancel
Vote up
0
Vote down
Cancel
Children
No data