¡@

Home 

c++ Programming Glossary: architecture

Detecting endianness programmatically in a C++ program

http://stackoverflow.com/questions/1001307/detecting-endianness-programmatically-in-a-c-program

whether or not you are on a big endian or little endian architecture I need to be able to write code that will execute on an Intel.. the endianness at compile time for OS which support multi architecture fat binary on Mac os x for example this will work for both ppc..

How do I convert between big-endian and little-endian values in C++?

http://stackoverflow.com/questions/105252/how-do-i-convert-between-big-endian-and-little-endian-values-in-c

point values and 32 bit and 64 bit integers from one CPU architecture to another. This doesn't involve networking so ntoh and similar..

What is the difference between NULL, '\0' and 0

http://stackoverflow.com/questions/1296843/what-is-the-difference-between-null-0-and-0

in the C language. It does not matter on the underlying architecture. If the underlying architecture has a null pointer value defined.. matter on the underlying architecture. If the underlying architecture has a null pointer value defined as address 0xDEADBEEF then.. compiler to sort this mess out. As such even on this funny architecture the following ways are still valid ways to check for a null..

Why can you return from a non-void function without returning a value without producing a compiler error?

http://stackoverflow.com/questions/1610030/why-can-you-return-from-a-non-void-function-without-returning-a-value-without-pr

std endl will print 6 2 1 This is calling convention and architecture dependent. 2 The return value is the result of last expression..

C++ Which is faster: Stack allocation or Heap allocation

http://stackoverflow.com/questions/161053/c-which-is-faster-stack-allocation-or-heap-allocation

in particular I am using a Metrowerks compiler for the PPC architecture. Insight on this combination would be most helpful but in general..

C state-machine design

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

on all the great input gathered on SO I've settled on this architecture c c design architecture state machines share improve this.. on SO I've settled on this architecture c c design architecture state machines share improve this question State machines..

What is “cache-friendly” code?

http://stackoverflow.com/questions/16699247/what-is-cache-friendly-code

improve this question Preliminaries Modern computer architectures feature complex memory hierarchies registers typically several.. takes only a handful of cycles. In modern computer architectures the performance bottleneck is leaving the CPU die e.g. accessing.. recommend to have a look at Herb Sutter's talk on machine architecture youtube specifically check 12 00 and onwards . Slides about..

What platforms have something other than 8-bit char?

http://stackoverflow.com/questions/2098149/what-platforms-have-something-other-than-8-bit-char

DSPs for which char is 16 bits. DSPs are a bit of a niche architecture I suppose. Then again at the time hand coded assembler easily..

How to use Boost in Visual Studio 2010

http://stackoverflow.com/questions/2629421/how-to-use-boost-in-visual-studio-2010

stage x64 b2 toolset msvc 10.0 build type complete architecture x86 address model 64 stage . Go for a walk watch a movie or..

size of int, long, etc

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

the size of basic C types. I know that it depends on the architecture 16 bits 32 bits 64 bits and the compiler. But are there any.. standards for C I'm using Visual Studio 2008 on a 32 bit architecture. Here is what I get char 1 byte short 2 bytes int 4 bytes long.. float and other types I didn't think of under different architectures and compilers. c c faq share improve this question The..

Resolve circular dependencies in c++

http://stackoverflow.com/questions/625799/resolve-circular-dependencies-in-c

for example will always be 32 or 64 bits depending on the architecture and so if you replaced either one by a pointer or reference..

how to achieve 4 FLOPs per cycle

http://stackoverflow.com/questions/8389648/how-to-achieve-4-flops-per-cycle

and for my simple programme . My Core i5 750 Nahelem architecture doesn't like alternating add's and mul's and seems unable to.. if grouped in 3's it suddenly works like magic. Other architectures possibly Sandy Bridge and others appear to be able to execute.. addsd xmm9 xmm2 addsd xmm13 xmm2 ... c c optimization architecture assembly share improve this question I've done this exact..

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

interesting to point out the differences between CPU cache architectures by providing a similar graph for these CPUs. PPS The full code.. 0 Benchmark Results EDIT Results on an actual Core 2 architecture machine 2 x Intel Xeon X5482 Harpertown @ 3.2 GHz #define ALLOCATE_SEPERATE..

What is the closest thing windows has to fork()?

http://stackoverflow.com/questions/985281/what-is-the-closest-thing-windows-has-to-fork

at how Cygwin implements fork . From a quite old Cygwin's architecture doc 5.6. Process Creation The fork call in Cygwin is particularly..

Instantiate class from name?

http://stackoverflow.com/questions/1096700/instantiate-class-from-name

find model that forms the basis of a Service Oriented Architecture SOA and for the services layer in OSGi. You implement a registry..

Why is C++ platform dependent?

http://stackoverflow.com/questions/11810484/why-is-c-platform-dependent

C which can be run in stand alone mode C Code cout hello Architecture Code some_assembly_routine hello Binary output system_print_code..

Globbing in C++/C, on Windows

http://stackoverflow.com/questions/1269480/globbing-in-c-c-on-windows

Is Updating double operation atomic

http://stackoverflow.com/questions/1292786/is-updating-double-operation-atomic

to be atomic if they are aligned. Quoting from the Intel Architecture Memory Ordering White Paper Intel 64 memory ordering guarantees..

Detecting CPU architecture compile-time

http://stackoverflow.com/questions/152016/detecting-cpu-architecture-compile-time

this question Here is some information about Pre defined Architecture Macros and other types of pre defined macros. share improve..

Understanding stack frame of function call in C/C++? [closed]

http://stackoverflow.com/questions/16088040/understanding-stack-frame-of-function-call-in-c-c

2 longjmp 3 etc.... etc... Read also books about Computer Architecture . In practice the call stack is so important that several hardware..

Good (preferable free) learning resources / books for embedded C / C++ programmers [closed]

http://stackoverflow.com/questions/3507148/good-preferable-free-learning-resources-books-for-embedded-c-c-programme

before hardware is available. Special debugging tricks. Architecture dependent techniques. Distributed programming. Thank you in..

Is `long` guaranteed to be at least 32 bits?

http://stackoverflow.com/questions/4329777/is-long-guaranteed-to-be-at-least-32-bits

Universal Multiple Octet Coded Character Set UCS Part 1 Architecture and Basic Multilingual Plane 2 Defined in climits as LONG_MIN..

Fatal error: “No Target Architecture” in Visual Studio 2010

http://stackoverflow.com/questions/4845198/fatal-error-no-target-architecture-in-visual-studio-2010

error &ldquo No Target Architecture&rdquo in Visual Studio 2010 When I try to compile my c project.. include winnt.h 135 fatal error C1189 #error No Target Architecture My preprocessor definitions say WIN32 _DEBUG _CONSOLE PreprocessorDefinitions.. _s TYPE_ALIGNMENT DWORD #else #error No Target Architecture #endif Update I created a new msvs project and copied my code..

How to quickly count bits in a series of ints?

http://stackoverflow.com/questions/7793997/how-to-quickly-count-bits-in-a-series-of-ints

function is in the most inner loop of my algorithm. Update Architecture x86 Sandy Bridge so SSE5 AVX and older tech can be used. bits..