This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
causing function not to clobber
- From: Dima Sorkin <dmitri dot sorkin at intel dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 15 Aug 2010 13:07:51 +0300
- Subject: causing function not to clobber
- Reply-to: dmitri dot sorkin at intel dot com
Hi.
Consider a function
void f();
Is there a way to specify that this function should not clobber any register (i.e. save every register it uses on the stack), even if ABI permits to clobber certain registers ?
If a way exists, is it in standard C (for example C99), or GCC extension ?
Thanks, regards,
Dima.
P.S.
Please CC me, I am not in the list.