Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
Is it possible to declare "naked" functions with armcc (KEIL)?
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
119 subscribers
Views
2195 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
Is it possible to declare "naked" functions with armcc (KEIL)?
Sylvain Garnier
over 12 years ago
Note: This was originally posted on 29th March 2011 at
http://forums.arm.com
With GCC I use this kind of functions:
__attribute__((naked))
void tb_flush(char* val1, int val2) {
asm volatile (".thumb_func\n bx lr\n");
}
This allows me to make PC jump to the tb_flush function and leave very quicly without saving/restoring the stack/regs. It is also different from declaring the function as inline, because I need the PC to change to this address (trap with OCD PC breakpoints or monitoring in my verilog testbench)
Does someone know how to do the same thing with armcc ?
Regards,
Sylvain
Parents
Sylvain Garnier
over 12 years ago
Note: This was originally posted on 30th March 2011 at
http://forums.arm.com
It's OK now,
thank you sim !
Regards
Cancel
Vote up
0
Vote down
Cancel
Reply
Sylvain Garnier
over 12 years ago
Note: This was originally posted on 30th March 2011 at
http://forums.arm.com
It's OK now,
thank you sim !
Regards
Cancel
Vote up
0
Vote down
Cancel
Children
No data