long-calls in ARM

Rafael Rodríguez Velilla rrv@tid.es
Mon Sep 10 12:48:00 GMT 2001


> There is also an arm specific function attribute called "long_call"
> which you can use to specifically label function which need to be
> treated as long calls.  This does mean however that you will have to
> go through and individually annotate all of the long call functions'
> prototypes.
>
> (Alternatively you could use -mlong-calls and then annotate functions
> which only need the short call sequence by using the function
> attribute "short_call").

How is this attribute used? Something like:

int foo_function_in_a_far_away_section __attribute__("long-call") (int a,
int b);     ?

Does this prototype tells gcc that any call to that function must be a
long call, or does it mean that all the functions that that function uses
should be called with long-calls? Maybe a mix?


> Cheers
>         Nick

--
Rafael Rodríguez Velilla        rrv@tid.es
Telefónica I+D          http://www.tid.es
Telf: +34 - 91 337 4270





More information about the Gcc mailing list