What decides the sizeof an integer?

Taken from http://en.wikipedia.org/wiki/64-bit (under 64-bit data models) There are various models, Microsoft decided that sizeof(int) == 4, some (a few) others didn’t. HAL Computer Systems port of Solaris to SPARC64 and Unicos seem to be the only ones where sizeof(int) == 8. They are called ILP64 and SILP64 models. The true “war” was for sizeof(long), … Read more

Why can I access lower dword/word/byte in a register but not higher?

why can’t I use multiple higher bytes in a register Every permutation of an instruction needs to be encoded in the instruction. The original 8086 processor supports the following options: instruction encoding remarks ——————————————————— mov ax,value b8 01 00 <– whole register mov al,value b4 01 <– lower byte mov ah,value b0 01 <– upper … Read more

.net Framework Error (HRESULT 0x8007000B)

While your main app might be built for AnyCPU are you sure all the assemblies are AnyCPU? Do you have any native assemblies or assemblies that contain native code? Are they built against x86? file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll This tells me that the app is running as an x64 process but it would appear that there is some … Read more

Boost linker error: Unresolved external symbol “class boost::system::error_category const & __cdecl boost::system::get_system_category(void)”

I solved the problem. I had built 32-bit libraries when I had intended to build 64-bit libraries. I fixed up my build statement, and built 64-bit libraries, and now it works. Here is my bjam command line: C:\Program Files (x86)\boost\boost_1_38>bjam –build-dir=c:\boost –build-type=complete –toolset=msvc-9.0 address-model=64 architecture=x86 –with-system

What is the size of float and double in C and C++? [duplicate]

Excerpt from the C99 standard, normative annex F (The C++-standard does not explicitly mention this annex, though it includes all affected functions without change per reference. Also, the types have to match for compatibility.): IEC 60559 floating-point arithmetic F.1 Introduction 1 This annex specifies C language support for the IEC 60559 floating-point standard. The IEC … Read more