Sponsored Links


Results 1 to 2 of 2

Thread: Use of Inline Function in c++ 2011

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Bfly Use of Inline Function in c++ 2011

    Sponsored Links1


    Is inline Function takes more memory at call time because of its copy and past behavior?

    And

    Sponsored Links

    What if we need the function and compiler will not call it as it is a request to compiler? can it be happen?

  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    Inline functions takes more memory but speed of execution can be increased, as inline functions remove the jumps from the function call to function definition rather the code is replaced in the main body. Due to this characteristic inline function can run faster than any ordinary function.
    No it is not possible because:
    If the compiler not treated the function as inline, then the function call normal procedure will be executed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-31-2012, 01:51 AM
  2. Replies: 0
    Last Post: 05-31-2012, 01:46 AM
  3. Replies: 1
    Last Post: 05-31-2012, 01:35 AM
  4. Replies: 0
    Last Post: 05-12-2011, 09:03 PM
  5. Replies: 1
    Last Post: 04-24-2011, 06:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft