not expanded inline?

This is a discussion on not expanded inline? within the C++ Programming forums, part of the General Programming Boards category; what does this compiler warning (Borland) mean?: "Functions containing ---- are not expanded inline" where '----' could be 'for', 'do', ...

  1. #1
    mrukok
    Guest

    not expanded inline?

    what does this compiler warning (Borland) mean?:

    "Functions containing ---- are not expanded inline"

    where '----' could be 'for', 'do', 'if'...

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    IIRC: When compiled, some functions can be generated as "inline code" meaning that in assembler terms, the code doesn't perform a branch to execute the function. Instead, the function code is replicated and follows on in sequence from where it would have been called. This saves the overhead of calling the function and returning from it.

    Your warning message is saying that the function in question will not become "inline", and therefore some optimisation is lost.
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inline Definitions and Declarations?
    By legit in forum C++ Programming
    Replies: 1
    Last Post: 06-15-2009, 01:59 PM
  2. When to inline your *tors
    By Angus in forum C++ Programming
    Replies: 43
    Last Post: 10-29-2008, 03:38 PM
  3. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  4. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 12:26 AM
  5. inline??
    By bman1176 in forum C++ Programming
    Replies: 2
    Last Post: 06-25-2002, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21