This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to force gcc to long-call a function (on MIPS)?
- From: "PRC" <panruochen at gmail dot com>
- To: "gcc-help" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 21 Feb 2008 16:06:27 +0800
- Subject: How to force gcc to long-call a function (on MIPS)?
Here is my code
--------------------------------------------------
typedef int (*MY_FUNC_ENTRY)(int) __attribute__(( far ));
...
((MY_FUNC_ENTRY)func_entry)(para);
---------------------------------------------------
But gcc still generates 'jal ADDR' instead of 'jalr $reg' for this function call.
How to force gcc to generate 'jalr' for this call?