> On Fri, Oct 24, 2014 at 8:35 PM, Yangfei (Felix) <felix.y...@huawei.com> > wrote: > >> Hi, > >> > >> I find that the -mlong-calls option is not there for AARCH64. So > >> can this port generate long calls? > >> Any plan on this option? I would like to have a try on this if it's > >> missing :-) > >> Thanks. > > > > > > Any comments? > > Yes you can use -mcmodel=large to this effect I think. > > Thanks, > Andrew Pinski
Thanks for the reply. It seems that -mcmodel=large is different from -mlong-calls. GCC still emit the BL instruction with -mcmodel=large. I thinks GCC should emit BLR instruction with -mlong-calls, right? void test(); int main() { test(); } Assembly for this main with -mcmodel=large option: main: stp x29, x30, [sp, -16]! add x29, sp, 0 bl test ldp x29, x30, [sp], 16 ret