Search:

Type: Posts; User: Elysia

Search: Search took 0.28 seconds.

  1. Replies
    43
    Views
    9,212

    Of course it is enabled with optimizations only....

    Of course it is enabled with optimizations only. If you do not enable optimizations, the compiler will leave the code alone - not make any changes.
    It does make sense to have it on when...
  2. Replies
    43
    Views
    9,212

    There should be other compilers that can fix...

    There should be other compilers that can fix this, but even if they cannot, even if you DO put inline there, it most likely will be ignored by the compiler because it simply cannot make a good guess...
  3. Replies
    43
    Views
    9,212

    But that is just the thing - you cannot control...

    But that is just the thing - you cannot control what to inline and not, because a compiler is not required to listen to your inline. It is more of a suggestion, and the compiler probably does it...
  4. Replies
    43
    Views
    9,212

    No. Certain compilers have link time...

    No. Certain compilers have link time optimizations. Visual C++ comes to mind.
    But besides that, inlining is only a suggestion to a compiler. It does not guarantee it will inline the function.
    So...
  5. Replies
    43
    Views
    9,212

    There would be a simple answer to this: let the...

    There would be a simple answer to this: let the compiler handle the inlining. The compiler generally knows best what to inline and not.
    Compile with a good compiler with aggressive inlining settings...
Results 1 to 5 of 5