How to force gcc to long-call a function (on MIPS)?

PRC panruochen@gmail.com
Thu Feb 21 08:07:00 GMT 2008


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?



More information about the Gcc-help mailing list