• Advertisement

Archived

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

Function inliner?

This topic is 5942 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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

  • Advertisement