[ Thread Index | 
Date Index
| More lists.liballeg.org/allegro-developers Archives
] 
> been suggested. However, I do know the inline keyword doesn't gaurantee 
> your code will be inlined, even if it's small enough to be. And I don't 
> see anything with -O, -O1, or -O2 that mentions that code marked inline 
> would be inlined.
It is inlined - in my chessprogram, I make rather heavy use of inline 
functions, so I've actually tested this. If you declare a function as 
inline, then GCC will inline it (if it can) ifoptimizationsare enabled.
If you want to know if a function is inlined or not, compile with the 
-Winline flag. This will produce a warning if the compiler did not inline 
a function that had the inline keyword.
And I forgot (of course) to have a look at your code... tempus fugit, as 
they used to say.
Evert