Global Information Lookup Global Information

Inline function information


In the C and C++ programming languages, an inline function is one qualified with the keyword inline; this serves two purposes:

  1. It serves as a compiler directive that suggests (but does not require) that the compiler substitute the body of the function inline by performing inline expansion, i.e. by inserting the function code at the address of each function call, thereby saving the overhead of a function call. In this respect it is analogous to the register storage class specifier, which similarly provides an optimization hint.[1]
  2. The second purpose of inline is to change linkage behavior; the details of this are complicated. This is necessary due to the C/C++ separate compilation + linkage model, specifically because the definition (body) of the function must be duplicated in all translation units where it is used, to allow inlining during compiling, which, if the function has external linkage, causes a collision during linking (it violates uniqueness of external symbols). C and C++ (and dialects such as GNU C and Visual C++) resolve this in different ways.[1]
  1. ^ a b Meyers, Randy (July 1, 2002). "The New C: Inline Functions". {{cite journal}}: Cite journal requires |journal= (help)

and 20 Related for: Inline function information

Request time (Page generated in 0.8734 seconds.)

Inline function

Last Update:

In the C and C++ programming languages, an inline function is one qualified with the keyword inline; this serves two purposes: It serves as a compiler...

Word Count : 3153

Inline expansion

Last Update:

inline expansion, or inlining, is a manual or compiler optimization that replaces a function call site with the body of the called function. Inline expansion...

Word Count : 3376

Inline

Last Update:

Inline citation (here meaning "within a line of text") Inline engine Inline hockey Inline skating Inline assembler Inline expansion Inline function in...

Word Count : 109

Intrinsic function

Last Update:

original function call, similar to an inline function. Unlike an inline function, the compiler has an intimate knowledge of an intrinsic function and can...

Word Count : 831

One Definition Rule

Last Update:

programming language that prescribes that classes/structs and non-inline functions cannot have more than one definition in the entire program and template...

Word Count : 1128

Inline caching

Last Update:

Inline caching is an optimization technique employed by some language runtimes, and first developed for Smalltalk. The goal of inline caching is to speed...

Word Count : 1567

Inline assembler

Last Update:

In computer programming, an inline assembler is a feature of some compilers that allows low-level code written in assembly language to be embedded within...

Word Count : 1471

Win32 Thread Information Block

Last Update:

Using Microsoft Windows SDK or similar, a programmer could use an inline function defined in winnt.h named NtCurrentTeb which returns the address of...

Word Count : 821

SciTE

Last Update:

designed mainly for source editing, and performs syntax highlighting and inline function reference for many different languages. There is a standalone .exe...

Word Count : 455

Linear congruential generator

Last Update:

interface function LCGRandom: extended; overload; inline; function LCGRandom(const range:longint): longint; overload; inline; implementation function IM: cardinal;...

Word Count : 4650

Haxe

Last Update:

The Haxe compiler is an optimizing compiler, and uses field and function inlining, tail recursion elimination, constant folding, loop unrolling and...

Word Count : 2358

Likelihood function

Last Update:

likelihood function (often simply called the likelihood) is the joint probability mass (or probability density) of observed data viewed as a function of the...

Word Count : 8542

Complex analysis

Last Update:

traditionally known as the theory of functions of a complex variable, is the branch of mathematical analysis that investigates functions of complex numbers. It is...

Word Count : 2517

Beta function

Last Update:

the beta function, also called the Euler integral of the first kind, is a special function that is closely related to the gamma function and to binomial...

Word Count : 3883

Dead code

Last Update:

compiler in this matter by making additional use of static and/or inline functions and enabling the use of link-time optimization. int foo (int iX, int...

Word Count : 680

Comparison of C Sharp and Java

Last Update:

be confused with closures and inline functions. The concepts are related because a reference to a closure/inline function must be captured in a delegate...

Word Count : 13903

ANSI C

Last Update:

<complex.h> Improved compatibility with several C++ features, including inline functions, single-line comments with //, mixing declarations and code, and universal...

Word Count : 1773

Indicator function

Last Update:

In mathematics, an indicator function or a characteristic function of a subset of a set is a function that maps elements of the subset to one, and all...

Word Count : 2417

Modulo

Last Update:

clarity */ long int quot; long int rem; } ldiv_t; /* Euclidean division */ inline ldiv_t ldivE(long numer, long denom) { /* The C99 and C++11 languages define...

Word Count : 3361

XPath 3

Last Update:

new features: Inline function expressions Anonymous functions can be created in an expression context. For example, the expression function($a as xs:double...

Word Count : 382

PDF Search Engine © AllGlobal.net