Archived

This topic is now archived and is closed to further replies.

Witchcraven

Function inliner?

Recommended Posts

Some compilers inline functions to optimize, but is there a program that takes un-compiled source, inlines everyhting possible. You can then take it to the compiler? Compiler inlining optimazations usually dont inline functions with loops.

Share this post


Link to post
Share on other sites
I''m not sure about this as I don''t have the Pro version, but I think MSVC 6 supports something like that. I think it is under the Projects->Settings->C/C++ tab.

Anyway, if you want the compiler to inline the function for you, use __forceinline. That ought to do the trick.

Share this post


Link to post
Share on other sites