Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
How to use inline assembly code in a thumb compiled c file?
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
119 subscribers
Views
3080 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
How to use inline assembly code in a thumb compiled c file?
dollfacedboyfriend dollfacedboyfriend
over 12 years ago
Note: This was originally posted on 17th September 2009 at
http://forums.arm.com
Hi,
I want to use inline assembly code in a thumb compiled file! And I'm using ADS1.2! Thanks a lot!
dollfacedboyfriend dollfacedboyfriend
over 12 years ago
Note: This was originally posted on 18th September 2009 at
http://forums.arm.com
Thanks a lot!
Cancel
Vote up
0
Vote down
Cancel
Martin Weidmann
over 12 years ago
Note: This was originally posted on 18th September 2009 at
http://forums.arm.com
ADS does not support embedded assembler, it was added in RVCT.
I don't believe you can do this. I'd suggest calling a function from a seperate assembler file.
Cancel
Vote up
0
Vote down
Cancel
Simon Craske
over 12 years ago
Note: This was originally posted on 17th September 2009 at
http://forums.arm.com
I don't believe ADS1.2 supports inline assembly when targetting Thumb code;
you could try embedded C,e .g:
__asm myfunc(int r0, int r1)
{
ADDS r0,r0,r1;
BX lr;
}
hth
s.
Cancel
Vote up
0
Vote down
Cancel
guestposter guestposter
over 12 years ago
Note: This was originally posted on 14th November 2009 at
http://forums.arm.com
Very nice post with a ton of informative information. I really appreciate the fact that you approach these topics from a stand point of knowledge and information
instead of the typical "I think" mentality that you see so much on the internet these days.
Cancel
Vote up
0
Vote down
Cancel