This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Supervisor Calls on ARM Cortex-M3
- From: Alex Alexandrov <alexalexsoft2009 at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 10 Jan 2013 14:47:59 -0800
- Subject: Supervisor Calls on ARM Cortex-M3
Hello,
Do the GCC C/C++ compilers support supervisor function calls on ARM
Cortex M3/4 targets?
I mean something like the IAR's "#pragma _swi" or the "__svc" keyword
used by the RealView compiler.
How can I make the compiler use the "svc" machine instruction when
calling the function, instead of the regular "branch and link" instruction?
Regards:
Alex Alexandrov