Hello,
the compiler will only inline functions he is able to 'see': if the function is inside the same file, and above where you want to inline it.
So it is a good idea to place the functions to be inlined at the beginning of the C file.
If your function 'bar' does something short, you may consider to make a C macro out of it and have it placed in a header file: that way you can get inlining through the preprocessor.
The other idea would be to have bar() in a separate small file (defined as static function, btw):
Then you could include this file in each of the modules where you want to inline it.
In order not to change a lot of files (to include this 'inline' file), you could simply use the -AddIncl command line switch (e.g. -AddInclMyIncludeFile.inc )
BK