¡@

Home 

c++ Programming Glossary: compilers

Why is processing a sorted array faster than an unsorted array?

http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array

interchange . This goes to show that even mature modern compilers can vary wildly in their ability to optimize code... share..

Why isn't sizeof for a struct equal to the sum of sizeof of each member?

http://stackoverflow.com/questions/119123/why-isnt-sizeof-for-a-struct-equal-to-the-sum-of-sizeof-of-each-member

when dealing with libraries that will be used by different compilers it is important to understand how the compilers align data... different compilers it is important to understand how the compilers align data. Some compilers have command line settings and or.. important to understand how the compilers align data. Some compilers have command line settings and or special #pragma statements..

What is an undefined reference/unresolved external symbol error and how do I fix it?

http://stackoverflow.com/questions/12573816/what-is-an-undefined-reference-unresolved-external-symbol-error-and-how-do-i-fix

use that .lib if any . Similar mechanism exist for other compilers platforms. Common error messages are error LNK2001 error LNK1120..

Most vexing parse: why doesn't A a(()); work?

http://stackoverflow.com/questions/1424510/most-vexing-parse-why-doesnt-a-a-work

To learn more about how languages are defined and how compilers work you should learn about Formal language theory or more specifically..

What should main() return in C and C++?

http://stackoverflow.com/questions/204476/what-should-main-return-in-c-and-c

portable Must the int main function return a value in all compilers c c return value return type share improve this question..

Undefined, unspecified and implementation-defined behavior

http://stackoverflow.com/questions/2397984/undefined-unspecified-and-implementation-defined-behavior

that do not behave in a predictable way even though many C compilers will not report any errors in the program Let's look at a classic..

Is it possible to write a C++ template to check for a function's existence?

http://stackoverflow.com/questions/257288/is-it-possible-to-write-a-c-template-to-check-for-a-functions-existence

Is it better in C++ to pass by value or pass by constant reference?

http://stackoverflow.com/questions/270408/is-it-better-in-c-to-pass-by-value-or-pass-by-constant-reference

the call to use a const ref. In theory. In practice compilers can ™t always change this without breaking the function ™s interface...

How do you declare an interface in C++?

http://stackoverflow.com/questions/318064/how-do-you-declare-an-interface-in-c

a body for the virtual destructor it turns out some compilers have trouble optimizing an empty destructor and you're better..

What is the copy-and-swap idiom?

http://stackoverflow.com/questions/3279543/what-is-the-copy-and-swap-idiom

will be able to do the same after swapping. Note that some compilers do not support constructor delegation in this case we have to..

When and why will an OS initialise memory to 0xCD, 0xDD, etc. on malloc/free/new/delete?

http://stackoverflow.com/questions/370195/when-and-why-will-an-os-initialise-memory-to-0xcd-0xdd-etc-on-malloc-free-new

this question A quick summary of what Microsoft's compilers use for various bits of unowned uninitialized memory when compiled..

std::wstring VS std::string

http://stackoverflow.com/questions/402283/stdwstring-vs-stdstring

characters Is std wstring supported by all popular C compilers What is exactly a wide character c string unicode c faq wstring.. UTF 8. 3. Is std wstring supported by almost all popular C compilers Mostly with the exception of GCC based compilers that are ported.. popular C compilers Mostly with the exception of GCC based compilers that are ported to Windows It works on my g 4.3.2 under Linux..

Operator overloading

http://stackoverflow.com/questions/4421706/operator-overloading

prefer prefix increment over postfix increment. While compilers can usually optimize away the additional work of postfix increment..

Why do I get “unresolved external symbol” errors when using templates?

http://stackoverflow.com/questions/456713/why-do-i-get-unresolved-external-symbol-errors-when-using-templates

keyword. Unfortunately this isn't supported by a lot of compilers. Both 1 and 2 basically address the problem by giving the compiler..

size of int, long, etc

http://stackoverflow.com/questions/589575/size-of-int-long-etc

types I didn't think of under different architectures and compilers. c c faq share improve this question The C standard does..

Where do I find the current C or C++ standard documents?

http://stackoverflow.com/questions/81656/where-do-i-find-the-current-c-or-c-standard-documents

C99 standard since C99 hasn't been widely implemented by compilers. If you want a hardcopy of the C90 standard for much less money..

Pointers to virtual member functions. How does it work?

http://stackoverflow.com/questions/1087600/pointers-to-virtual-member-functions-how-does-it-work

some stuff about virtual functions under The Well Behaved Compilers although IIRC when I read the article I was skimming that part..

Binding temporary to a lvalue reference

http://stackoverflow.com/questions/1345382/binding-temporary-to-a-lvalue-reference

If yes how this program is compiling Any thoughts Edit Compilers tried VS 2008 and VS2010 Beta c compiler lvalue rvalue share..

Qt Creator - How to add a compiler? [duplicate]

http://stackoverflow.com/questions/14464075/qt-creator-how-to-add-a-compiler

couldn't get it done. This are my options from Build Run Compilers Details It is Qt Creator 2.6.1 Based on Qt 5.0.0 32 bit I have..

c++11 Return value optimization or move?

http://stackoverflow.com/questions/17473753/c11-return-value-optimization-or-move

so there is no need to explicitly move with return values. Compilers are allowed to automatically move the return value to optimize..

What is the lifetime of a static variable in a C++ function?

http://stackoverflow.com/questions/246564/what-is-the-lifetime-of-a-static-variable-in-a-c-function

the order but there are some other things to consider Compilers typically use a hidden flag variable to indicate if the local..

References Needed for Implementing an Interpreter in C/C++

http://stackoverflow.com/questions/294852/references-needed-for-implementing-an-interpreter-in-c-c

queue. New and yet Old i.e. 1979 Writing Interactive Compilers and Interpreters by P. J. Brown. This is long out of print but..

long double vs double

http://stackoverflow.com/questions/3454576/long-double-vs-double

12 or 16 bytes to maintain data structure alignment . and Compilers may also use long double for a 128 bit quadruple precision format..

.c vs .cc vs. .cpp vs .hpp vs .h vs .cxx [duplicate]

http://stackoverflow.com/questions/5171502/c-vs-cc-vs-cpp-vs-hpp-vs-h-vs-cxx

or manually in the contexts where they are needed. Compilers and tools usually don't care about what extensions are used..

Why is the linux kernel not implemented in C++? [closed]

http://stackoverflow.com/questions/520068/why-is-the-linux-kernel-not-implemented-in-c

This can be hard to provide in an unhosted environment. Compilers do permit you to switch them off. Apparently simple statements..

static vs extern “C”/“C++”

http://stackoverflow.com/questions/592160/static-vs-extern-c-c

has to support beside extern C which is the default. Compilers may supports other language linkages. GCC for example supports..

Compilers and argument order of evaluation in C++

http://stackoverflow.com/questions/621542/compilers-and-argument-order-of-evaluation-in-c

and argument order of evaluation in C Okay I'm aware that the..

How does the compilation, linking process work?

http://stackoverflow.com/questions/6264249/how-does-the-compilation-linking-process-work

the object file as long as the source code is well formed. Compilers usually let you stop compilation at this point. This is very..

Can a local variable's memory be accessed outside its scope?

http://stackoverflow.com/questions/6441218/can-a-local-variables-memory-be-accessed-outside-its-scope

to update this a bit with a few more technical thoughts. Compilers are in the business of generating code which manages the storage..

C/C++: Optimization of pointers to string constants

http://stackoverflow.com/questions/690176/c-c-optimization-of-pointers-to-string-constants

lowest level doesn't mean Be completely naive after all. Compilers will vary in how aggressive they are at merging duplicate string..

C++, __try and try/catch/finally

http://stackoverflow.com/questions/7049502/c-try-and-try-catch-finally

SEH they are the rough equivalent to Unix signals. Compilers that generate code for Windows typically take advantage of this..

Embed assembler to manipulate 64-bit registers in portable C++

http://stackoverflow.com/questions/7859568/embed-assembler-to-manipulate-64-bit-registers-in-portable-c

at a time. I want the solution to be portable between OS Compilers minimally supporting GNU g and Visual C and between Linux and..

C++ #include guards

http://stackoverflow.com/questions/8020113/c-include-guards

get #include Pysics.h and you are stuck in a loop forever. Compilers prevent that but that means your #include s are half done. Before..

Handle arbitrary length integers in C++

http://stackoverflow.com/questions/8146938/handle-arbitrary-length-integers-in-c

and click Set as Default then on Toolchain Exectables on Compilers installation directory you can choose the installation directory..

Is inline assembly language slower than native C++ code?

http://stackoverflow.com/questions/9601427/is-inline-assembly-language-slower-than-native-c-code

share improve this question Yes yes yes. Most times. Compilers can do optimizations that most people can't even imagine see..