Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
force gcc usign ARM instruction set,why there are 2byte aligned instructions?
Jump...
Cancel
Locked
Locked
Replies
5 replies
Subscribers
119 subscribers
Views
3486 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 usign ARM instruction set,why there are 2byte aligned instructions?
Heron Zhang
over 12 years ago
Parents
Heron Zhang
over 12 years ago
Note: This was originally posted on 7th September 2012 at
http://forums.arm.com
Thanks for your reply.
The source code was recompiled, with the -O2 -marm.I had tried the -mno-thumb,and recompiled again,but the ouput was the same.
The function above calls the code in section .init to do some init work. How can I compile the source code totally into ARM instruction set,without any other instruction set?
I have another question,if I had a ARM core which support ONLY ARM instruction set(there is no Thumb,thumb-2 and so on),but with MMU(which means can run LinuxOS),Can I compile the Linux kernel to run on that ARM core?
thanks again.
Hmm - that's Thumb code.
(1) Are you sure it recompiled?
(2) Try -mno-thumb
Pete
Cancel
Vote up
0
Vote down
Cancel
Reply
Heron Zhang
over 12 years ago
Note: This was originally posted on 7th September 2012 at
http://forums.arm.com
Thanks for your reply.
The source code was recompiled, with the -O2 -marm.I had tried the -mno-thumb,and recompiled again,but the ouput was the same.
The function above calls the code in section .init to do some init work. How can I compile the source code totally into ARM instruction set,without any other instruction set?
I have another question,if I had a ARM core which support ONLY ARM instruction set(there is no Thumb,thumb-2 and so on),but with MMU(which means can run LinuxOS),Can I compile the Linux kernel to run on that ARM core?
thanks again.
Hmm - that's Thumb code.
(1) Are you sure it recompiled?
(2) Try -mno-thumb
Pete
Cancel
Vote up
0
Vote down
Cancel
Children
No data