This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

IPO over multiple source files


Does gcc (4.2 and above) have the capability to perform interprocedural
analyses and optimizations over multiple source files? For example, there
are two files a.c and b.c (shown below)

File a.c:
------------
#include<stdio.h>
static int foo (int i, int j) {return i*j;}
int main (void) {printf ("%d\n", foo (10, foo1 ()));return 0;}

File b.c:
------------
int foo1 (void) {return 10;}

What options, if any, will enable inlining of the body of foo1 () into
main()?

regards,
Soumyaroop
-- 
View this message in context: http://www.nabble.com/IPO-over-multiple-source-files-tp23589884p23589884.html
Sent from the gcc - Help mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]