ˇ@

Home 

c++ Programming Glossary: machine

Programmatically find the number of cores on a machine

http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine

find the number of cores on a machine This is more of a curiosity question than something that needs.. solving but is there a way to determine how many cores a machine has from C in a platform independent way If no such thing exists..

C state-machine design

http://stackoverflow.com/questions/1647631/c-state-machine-design

state machine design I am crafting a small project in mixed C and C . I am.. in mixed C and C . I am building one small ish state machine at the heart of one of my worker thread. I was wondering if.. I was wondering if you gurus on SO would share your state machine design techniques. NOTE I am primarily after tried tested implementation..

Most effective way for float and double comparison

http://stackoverflow.com/questions/17333/most-effective-way-for-float-and-double-comparison

size of a and b . BTW std numeric_limits epsilon is the machine epsilon . It is the smallest positive value e such that 1 e..

Get the IP address of the machine

http://stackoverflow.com/questions/212528/get-the-ip-address-of-the-machine

the IP address of the machine This Question is almost the same as the previously asked Get.. done a quick example below which will print all of the machine's IPv4 address you should also check the getifaddrs was successful..

Is there a max array length limit in C++?

http://stackoverflow.com/questions/216259/is-there-a-max-array-length-limit-in-c

for an array in C Is it a C limit or does it depend on my machine Is it tweakable Does it depend on the type the array is made..

Undefined, unspecified and implementation-defined behavior

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

Standard define a parameterized nondeterministic abstract machine. Certain aspects and operations of the abstract machine are.. machine. Certain aspects and operations of the abstract machine are described in this International Standard as implementation.. int . These constitute the parameters of the abstract machine. Each implementation shall include documentation describing..

Why is volatile not considered useful in multithreaded C or C++ programming?

http://stackoverflow.com/questions/2484980/why-is-volatile-not-considered-useful-in-multithreaded-c-or-c-programming

atomically by another thread probably using an appropriate machine instruction the reading thread sees this situation in the same..

Using arrays or std::vectors in C++, what's the performance gap?

http://stackoverflow.com/questions/381621/using-arrays-or-stdvectors-in-c-whats-the-performance-gap

by gcc 4.1.0 invoked with g O3 S on a x86_64 suse linux machine. #include vector struct S int padding std vector int v int p..

std::wstring VS std::string

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

on GUI labels using the local charset codepage on the machine. For example olé would be olé in a french localized Windows..

Developing Internet Explorer Extensions?

http://stackoverflow.com/questions/5643819/developing-internet-explorer-extensions

a specific x64 inside the path of gacutil executable on my machine that may be different on yours. 64bit IE Needs 64bit compiled..

Why is one loop so much slower than two loops?

http://stackoverflow.com/questions/8547778/why-is-one-loop-so-much-slower-than-two-loops

Results EDIT Results on an actual Core 2 architecture machine 2 x Intel Xeon X5482 Harpertown @ 3.2 GHz #define ALLOCATE_SEPERATE..

How to compile for Win XP with Visual Studio 2012?

http://stackoverflow.com/questions/13130713/how-to-compile-for-win-xp-with-visual-studio-2012

but when I try to execute it from a Windows XP SP3 Virtual Machine I get xxxx.exe is not a valid win32 application right away...

How to design around the limitation that templated member functions can't be virtual

http://stackoverflow.com/questions/15592424/how-to-design-around-the-limitation-that-templated-member-functions-cant-be-vir

that now each machine would have an interface like class Machine public template typename T virtual void process T item 0 However.. the larger design scheme and really no other part of the Machine class depends on Item...it's only an argument to the process.. this question Typically double dispatch is used. class Machine class Item public virtual void bounce Machine mach class Machine..

A way of achieving lazy evaluation in C++

http://stackoverflow.com/questions/16701108/a-way-of-achieving-lazy-evaluation-in-c

STG machine of Haskell is Tagless the Spineless Tagless G Machine because they don't tag the data elements instead they use a..

Get the IP address of the machine

http://stackoverflow.com/questions/212528/get-the-ip-address-of-the-machine

However I need to find the IP address es of a Linux Machine . So How do I programmatically in C detect the IP addresses..

C++, can I statically initialize a std::map at compile time?

http://stackoverflow.com/questions/2172053/c-can-i-statically-initialize-a-stdmap-at-compile-time

They are wishy washy on the use of their Finite State Machine classes in embedded systems so that is actually what I am coding..

What is the fastest way to compute sin and cos together?

http://stackoverflow.com/questions/2683588/what-is-the-fastest-way-to-compute-sin-and-cos-together

Finite State Machine parser

http://stackoverflow.com/questions/3085070/finite-state-machine-parser

State Machine parser I would like to parse a self designed file format with.. question If you have nesting scopes then a Finite State Machine is not the right way to go and you should look at a Context..

Performance of C++ vs Virtual Machine languages in high frequency finance

http://stackoverflow.com/questions/3175072/performance-of-c-vs-virtual-machine-languages-in-high-frequency-finance

of C vs Virtual Machine languages in high frequency finance I thought the C C vs C#..

Why does C++ compilation take so long?

http://stackoverflow.com/questions/318398/why-does-c-compilation-take-so-long

compiler generates is as optimized as it's going to get. Machine code C is compiled to machine code which may be somewhat more..

Is C# really slower than say C++?

http://stackoverflow.com/questions/5326269/is-c-sharp-really-slower-than-say-c

about how those languages work in real life. Virtual Machine Like almost any reasonably modern VM Microsoft's for .NET can..

Getting Machine Serial number and CPU Id using c/c++ in Linux

http://stackoverflow.com/questions/6491566/getting-machine-serial-number-and-cpu-id-using-c-c-in-linux

Machine Serial number and CPU Id using c c in Linux How can i get Machine.. Serial number and CPU Id using c c in Linux How can i get Machine Serial number and CPU Id in Linux system. Sample code is highly..

Why dereferencing a null pointer is undefined behaviour?

http://stackoverflow.com/questions/6793262/why-dereferencing-a-null-pointer-is-undefined-behaviour

to C99 standard as far as I know it is well defined. Machine dependency Any ideas c pointers undefined behavior share..

GetVersionEx under Windows 8

http://stackoverflow.com/questions/9817160/getversionex-under-windows-8

Possible compiler bug in Visual C++ 2012 (x86)?

http://stackoverflow.com/questions/13051930/possible-compiler-bug-in-visual-c-2012-x86

below and compile using cl GL O2 EHsc test.cpp link MACHINE X86 The output should be 10 10 but it produces 10 0 when GL..

Build Boost C++ WinCE

http://stackoverflow.com/questions/15906901/build-boost-c-wince

DUNICODE linkflags subsystem windowsce 6.00 linkflags MACHINE X86 linkflags NODEFAULTLIB oldnames.lib linkflags NODEFAULTLIB..

C++ boost thread reusing threads

http://stackoverflow.com/questions/2659065/c-boost-thread-reusing-threads

LNK2005: delete already defined error in VC++

http://stackoverflow.com/questions/2773168/lnk2005-delete-already-defined-error-in-vc

SUBSYSTEM WINDOWS DYNAMICBASE NXCOMPAT MACHINE X86 .. .. .. tara database build Debug tara_database.lib ....

Boost.Thread throws bad_alloc exception in VS2010

http://stackoverflow.com/questions/2914666/boost-thread-throws-bad-alloc-exception-in-vs2010

CSF Release Client.pgd LTCG TLBID 1 DYNAMICBASE NXCOMPAT MACHINE X86 ERRORREPORT QUEUE c visual studio 2010 boost boost thread..

Why/when is __declspec( dllimport ) not needed?

http://stackoverflow.com/questions/4489441/why-when-is-declspec-dllimport-not-needed

DEBUG PDB u libs Debug server.pdb SUBSYSTEM WINDOWS MACHINE X86 ERRORREPORT PROMPT kernel32.lib user32.lib gdi32.lib winspool.lib.. DEBUG PDB u libs debug debug client.pdb SUBSYSTEM CONSOLE MACHINE X86 server.lib kernel32.lib user32.lib gdi32.lib winspool.lib..

Unresolved externals despite linking in zlib.lib

http://stackoverflow.com/questions/5424549/unresolved-externals-despite-linking-in-zlib-lib

SBRapGen2 Debug SBRapGen2.pgd TLBID 1 DYNAMICBASE NXCOMPAT MACHINE X86 ERRORREPORT QUEUE UPDATE 2 Verbose linker output 1 Build..

How to compile ASL (boost based Adobe C++ gui library) on linux?

http://stackoverflow.com/questions/6461621/how-to-compile-asl-boost-based-adobe-c-gui-library-on-linux

exit r fi test_path hash 1 1 dev null 2 dev null WD `pwd` MACHINE `uname` HERE `dirname 0` cd HERE if 1 then ASL_DISTRO_SITE 1.. adobe_root adobe_source_libraries tools patch_boost.sh if MACHINE Darwin then cd adobe_root adobe_platform_libraries else cd adobe_root..

Determine path to registry key from HKEY handle in C++

http://stackoverflow.com/questions/937044/determine-path-to-registry-key-from-hkey-handle-in-c

key NULL LONG ret ERROR_SUCCESS ret RegOpenKey HKEY_LOCAL_MACHINE L SOFTWARE Microsoft key if ret ERROR_SUCCESS wprintf_s L Key..