Andes Workshop http://forum.andestech.com/ |
|
naked function http://forum.andestech.com/viewtopic.php?f=16&t=846 |
Page 1 of 1 |
Author: | cindy [ Sat May 17, 2014 12:17 am ] |
Post subject: | naked function |
From: http://gcc.gnu.org/onlinedocs/gcc/Funct ... butes.html Code: naked
Use this attribute on the ARM, AVR, MCORE, MSP430, NDS32, RL78, RX and SPU ports to indicate that the specified function does not need prologue/epilogue sequences generated by the compiler. It is up to the programmer to provide these sequences. The only statements that can be safely included in naked functions are asm statements that do not have operands. All other statements, including declarations of local variables, if statements, and so forth, should be avoided. Naked functions should be used to implement the body of an assembly function, while allowing the compiler to construct the requisite function declaration for the assembler. |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |