Can gcc do same work like VS2005 "/ORDER" options

Wu .Shao Lin shao.lin.wu@gmail.com
Mon Aug 1 05:54:00 GMT 2011


Hi, GCC experts:

    I am playing with C, and have tried the -freorder-functions with
__attribute__((hot)), it works some but the link only reorder the
functions that in one object file range , Is there any way to ask link
to reorder the functions in whole executive file range?

    Can I name the functions (C code) to other code segments (instead
of .text by default)?

Thanks & Best Regards,
Shaolin



More information about the Gcc-help mailing list