R
Raphael
Hello,
I have 2 files
A.c : Defining a bunch of usefull functions
B.c : Defining a main that uses these ones.
I need to improve perfs :
I know that, if the caller and the functions called were in
the same file, the compiler would automatically inline them if
possible.
The question is : Is it possible to force the compiler, or to use it
in a way to make it inline my functions, even for different source files.
(I'm using GCC 3.2)
I know i could make big macros of my functions, or
gather all in the same file, but I would like to keep my source clean.
Thanks.
Raphael
I have 2 files
A.c : Defining a bunch of usefull functions
B.c : Defining a main that uses these ones.
I need to improve perfs :
I know that, if the caller and the functions called were in
the same file, the compiler would automatically inline them if
possible.
The question is : Is it possible to force the compiler, or to use it
in a way to make it inline my functions, even for different source files.
(I'm using GCC 3.2)
I know i could make big macros of my functions, or
gather all in the same file, but I would like to keep my source clean.
Thanks.
Raphael