Software Archive
Read-only legacy content
17060 Discussions

Inlining Module Functions...

Deleted_U_Intel
Employee
987 Views
Does anyone know a way to get inlined module functions. I find that if I put the module in the same file as the caller, the functions seem to inline, but if the module is not in the same file they don't. I would really like to be able to get the speed of inlining, but the convenience of module separation.
0 Kudos
1 Reply
Steven_L_Intel1
Employee
987 Views
Sorry - inlining happens only when the compiler sees the source of the caller and callee together.

What you can do for your "release" configuration is have the project consist of a single source file that INCLUDEs all the other sources. For development, have another project that is the separate sources. They can live in the same workspace and you can easily switch among them.

Steve
0 Kudos
Reply