Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
How to link assembly function in C file
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
118 subscribers
Views
2689 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
How to link assembly function in C file
kranti kranti
over 12 years ago
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 18th September 2009 at
http://forums.arm.com
Presumably you added "EXPORT addition" to the assembly file.
Note that in RVCT you could do this in the C file via:
__asm int addition(int r0,int r1)
{
ADD r0,r0,r1;
BX lr;
}
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 18th September 2009 at
http://forums.arm.com
Presumably you added "EXPORT addition" to the assembly file.
Note that in RVCT you could do this in the C file via:
__asm int addition(int r0,int r1)
{
ADD r0,r0,r1;
BX lr;
}
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data