Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
ARM Assembly code - doubt.
Jump...
Cancel
Locked
Locked
Replies
4 replies
Subscribers
118 subscribers
Views
3340 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
ARM Assembly code - doubt.
vasanthfriend vasanthfriend
over 12 years ago
Parents
Simon Craske
over 12 years ago
Note: This was originally posted on 4th August 2009 at
http://forums.arm.com
Both armcc (--cpu=arm926ej-s) and gcc (-mcpu=arm926ej-s -O1) will happily compile the appropriate C code to a single SMLAL instruction, e.g.:
long long my_smlal(long long acc, int x, int y)
{
return acc + (long long)x * y;
}
i.e. there shouldn't be any need to resort to assembly here.
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Reply
Simon Craske
over 12 years ago
Note: This was originally posted on 4th August 2009 at
http://forums.arm.com
Both armcc (--cpu=arm926ej-s) and gcc (-mcpu=arm926ej-s -O1) will happily compile the appropriate C code to a single SMLAL instruction, e.g.:
long long my_smlal(long long acc, int x, int y)
{
return acc + (long long)x * y;
}
i.e. there shouldn't be any need to resort to assembly here.
hth
s.
Cancel
Vote up
0
Vote down
Cancel
Children
No data