Arm Community
Site
Search
User
Site
Search
User
Groups
Education Hub
Distinguished Ambassadors
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello forum
Operating Systems forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Internet of Things (IoT) blog
Operating Systems blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Arm Development Studio forum
force gcc to NOT use thumb?
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
118 subscribers
Views
8934 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
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 10 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
Peter Harris
over 10 years ago
Note: This was originally posted on 11th December 2010 at
http://forums.arm.com
The gcc options are:
-mthumb or -marm
Iso
Cancel
Up
0
Down
Cancel
Etienne SOBOLE
over 10 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
Up
0
Down
Cancel
Scott Douglass
over 10 years ago
Cancel
Up
0
Down
Cancel