Computer problems,Computer help
*AX SOFT>>>Programming & Design

When we should (in what situation/scenario) we are supposed to use inline function in spite of normal function


Define function and inline function, what is the difference between these two(normal function/inline function).

I use Visual Basic, which has no such thing.

However, if I remember correctly, the Inline keyword forces the code of the method being called to be compiled in-line (hence the name).

So, instead of, during run-time, the program execution "jumping" your method and passing parameters, the program execution just proceeds through the duplicated code without the jump (because it's in-inline).

The advantage of inline is the saved time for the jump. The disadvantage of inline is the extra code that is compiled (meaning the size of the executable is bigger) since there is extra duplicated code for a lot of your method calls.

Edit:
I added a link to WikiPedia. It looks like my guess was close.

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • <header.h> / "header.h" mein difference and normal function /inline function mein difference?

    <header.h> :means it execute or it include the only that file which are belonging or present in a TC folder header.h :means it execute all the header files which r present in u r hard dis...

  • EdgeCam Help?

    May be you can contact a edgecam expert live at website like ...

  • Array of Structures?

    Yes. Contrary to what the previous responder said, structure assignment, as shown in your example, is valid in ANSI C.

    ...
  • Music for my website?

    I love notepad. Good job! If you want people to be able to download them, then all you need is a link. Use anchor tags, and upload your files as you please. If you are asking what you need ...

  • Free Clothes On Zwinky?

    to unlock every thing you have to press f2

    ...
  • Html big doubt?

    Your syntax is incorrect and it's recognizing your HTML as just plain text. Make sure you have all of your tags closed (<HTML>,<HEAD>,<BODY>,etc) and everything is symmetric....

  • Java prablom?

    There is a big difference between "if" and "else if". An if statement will always be executed where as, an "else if" will only be executed when the if returns false. F...

  • What does "line b problem parsing XML: "null" is null or not and object". mean?

    It's a bug in their JavaScript code, nothing you can do apart from report it to AT&T support. It's their problem, not yours.

    ...
  •  

    Categories--Copyright/IP Policy--Contact Webmaster