FAQ Database Discussion Community


Accessing a corrupted shared library

assembly,x86,32bit-64bit
Here is the code of cpuid2.s: #cpuid2.s view the cpuid vendor id string using c library calls .section .data output: .asciz "The processor Vendor ID is '%s'\n" .section .bss .lcomm buffer, 12 .section .text .global _start _start: movl $0, %eax cpuid movl $buffer, %edi movl %ebx, (%edi) movl %edx, 4(%edi)...

Sending NSDATA from 32bit to 64bit in multiplayer game using Game centre in ios

ios,nsdata,32bit-64bit,game-center
I am developing multiplayer game using game centre, Overall Code is working well if my both device is 64bit or 32bit, but if my one device is 32bit and other is 64bit than sending data is not correct, please help me, thanks in Advance - (void)sendDataToPlayers:(void *)data length:(NSInteger)length { NSError...

Is there any reason to still use int as opposed to long on a 64 bit machine?

java,64bit,32bit-64bit
In general, is there any reason to still use int as opposed to long in Java if programming on a 64 bit architecture? Specifically in my case: I use int variables that are being mapped to keys(sequential numbers starting from 1 and incremented for each new entry) of type NUMBER...

Chess Engine - Represent bitboard in 32bit Nasm

assembly,32bit-64bit,chess
I'm trying to write a chess engine in 32bit nasm. I read up on bit boards and I want to represent the board using bit boards, however the fact i'm working with 32bit registers is an inconvenience. What I did is divide each bit board into 32bit sections. But would...

Does PHP silently optimize consecutive fseek-commands into one fseek command?

php,performance,windows-7,32bit-64bit,internal
I am running Windows 7 - 64 bit, with the latest XAMPP version that has a 32-bit PHP version. On testing http://php.net/manual/en/function.fseek.php#112647 for a very big file (bigger than PHP_MAX_INT 2147483647) I'm now pretty sure, that the consecutively following fseeks are summed up before being executed on the filepointer. I have...

How to use #if to decide which platform is being compiled for in C#

c#,32bit-64bit,preprocessor-directive
In C++ there are predefined macros: #if defined(_M_X64) || defined(__amd64__) // Building for 64bit target const unsigned long MaxGulpSize = 1048576 * 128;// megabyte = 1048576; const unsigned long MaxRecsCopy = 1048576 * 16; #else const unsigned long MaxGulpSize = 1048576 * 8;// megabyte = 1048576; const unsigned long MaxRecsCopy...

How to read files bigger than PHP_INT_MAX in php?

php,performance,types,32bit-64bit
I'm using Win 7, 64 bit, and an XAMPP installation (ApacheFriends XAMPP Version 5.6.3). I tried the function given at http://php.net/manual/en/function.fseek.php#112647 But that didn't work. It only ever reads up to byte PHP_INT_MAX which is 2147483647. I tried seeks around that number, so I'm pretty sure that's the boundary. Someone...

Build/install llvm/clang with both 32 & 64-bit support libraries

clang,llvm,32bit-64bit,libraries,building
My (built from source) llvm/clang install is able to create 32/64-bit executables fine, but when I created the installation it only produced 64-bit libraries (eg, libclang). I've sifted through their documentation, looked through the configure help, etc. As best I can tell my only option is to configure targeting a...

How to detect 32/64 platform?

delphi,32bit-64bit,delphi-xe7
I need to detect if the app is running on Win32/64. Update: People are reporting that relying on the [HKLM\HARDWARE\DESCRIPTION\System\CentralProcessor\0] key is not a good idea. ...

What is the systematic way when I want my code (client and server ) work on various scenarios?

c,linux,cross-platform,32bit-64bit
I developed in on 64-bit MAC. And I wish it would work under two scenarios: 64 bit server and 64 bit client 32 bit server and 64 bit client ONLY DEALING *NIX NOW Between the communication of server A and client B, I would exchange a linked list of struct,...

Why this code didn't work for -m32?

c++,templates,g++,32bit-64bit
#include <stddef.h> template<size_t N = sizeof(void*)> struct a; template<> struct a<4> { enum { b }; }; template<> struct a<8> { template<int> struct b {}; }; enum { c, d }; int main() { a<>::b<c>d; d; } I have a piece of code which succesfully compiles for x64 architecture by...

Max Memory Size for a Thread on a 32 bit process

windows,memory-management,out-of-memory,32bit-64bit,32-bit
I know there is a 4gb limit for each process when running in 32 bits .... but if a process has multiple threads... does all the memory usage of each thread add up to the total of 4gb? Or does each thread get 4gb of individual memory space to use?

Debian Jessie 32-bit libraries

x86,debian,32bit-64bit,32-bit
For those looking for the answer, there it's, as it's not clear on other websites. This is required at least by the Intel compiler. Maybe it helps also for other software....

Getting Compile Error: User-defined type not defined when working to make an old 32-bit template into a Word 2012 64-bit template

vba,templates,compiler-errors,32bit-64bit,word-vba
I have a Photo Template that grabs photos from files and places them in their individual boxes in a word document. The file use to be a Word 2003 32-bit file that would only run in our old computer. I have transformed the file to 64-bit to use in our...

When does casting to `int` cause problems?

objective-c,32bit-64bit
Recently (as of Xcode 6?) I've got hundreds of warnings where I am converting without a cast: from NSInteger to int from NSUIntger to int If I were to add a cast: Under what conditions would this be problematic? Only if the number exceeds 32-bit integer max, right? Under what...

NDK r10b 32 and 64 bit builder for mac

android,osx,android-ndk,32bit-64bit,ndk-build
Here is the link to 32 bit NDK r10b builder http://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86_64.tar.bz2 Here is the link to 64 bit NDK r10b builder http://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86_64.tar.bz2 Both the NDK builder seems to be identical and both are marked as r10b (64-bit) in RELEASE.TXT So, Am I doing downloading NDK builders from wrong place ?...

Target 64-bit program files folder with the latest Install Shield LE

visual-studio-2013,64bit,32bit-64bit,installshield,installshield-le
Previous versions of Install Shield Limited Edition have not supported the creation of 64-bit packages, but rumor has it that it now does (see comments under the accepted answer here), as of Visual Studio 2013. I'm using VS 2013 with the latest Install Shield LE, and I still can't figure...

Migrating a 32bit qt application to 64 bit platform

visual-studio,qt,compilation,64bit,32bit-64bit
I have an application developed with qt. I want to make a 64 bit version of it on windows. I am using visual studio 2012. how do I use the VS compiler to compile the qt source code and my source code for a 64 bit target?...

running 64-bit application with 32-bit shared object

64bit,shared-libraries,32bit-64bit
I have 64-bit Linux OS, and would like to ask if I can use the following combinations: 64-bit application (java) using 32-bit shared object (C++) on 64 bit OS 32-bit application (java) using 32-bit shared object (C++) on 64 bit OS 64-bit application (java) using 64-bit shared object (C++) on...

Obj-C setValuesForKeysWithDictionary 64-bit vs 32-bit

ios,objective-c,json,nsdictionary,32bit-64bit
I am pulling a JSON object from my API and creating it using the following code (in hindsight not the way to go): + (YActivity *)instanceFromDictionary:(NSDictionary *)jsonDictionary { YActivity * instance = [[YActivity alloc] init]; [instance setAttributesFromDictionary:jsonDictionary]; return instance; } - (void)setAttributesFromDictionary:(NSDictionary *)jsonDictionary { if (![jsonDictionary isKindOfClass:[NSDictionary class]]) { return;...

Choose between 32 and 64 bit for an NSIS installer?

java,32bit-64bit,nsis
I have found some similar questions but I'm not totally sure that they answer my question. I am needing to include Java within my installer, however, we will not know whether the client is using 32 or 64 bit and we do not want to make the assumption. We have...

ubuntu 64-bit is LP64?

ubuntu,64bit,32bit-64bit
I understnad that there several models for 64-bits: LP64, ILP64 ,LLP64. I would like to ask which of them is used with ubuntu 64-bit (and the gcc used in this ubuntu) ?

64-bit SQLGetStmtAttr writes 8 bytes to value buffer when returning SQLUINTEGER

c++,sql-server,odbc,32bit-64bit
I'm surprised by what I'm seeing in this block of code: SQLUINTEGER uiCursorType; SQLINTEGER iLength; SQLRETURN sSQLReturn; sSQLReturn = SQLGetStmtAttr( shStmtHandle, SQL_ATTR_CURSOR_TYPE, &uiCursorType, SQL_IS_UINTEGER, &iLength); I was initially tipped off that a problem may exist here because when the containing function returns, the Visual Studio (remote) debugger tells me that...

Boost serialization does not work between 32bit and 64bit machine. Any other serialization / compression library?

c++,serialization,boost,32bit-64bit,cereal
I am trying to use the boost library to serialize on 64bit machine and de-serialize on 32bit machine. However, it seems it does not work. (I use 1.57.0). If I run the following code boost::asio::streambuf buf; std::ostream os(&buf); boost::archive::binary_oarchive oa(os); printf("Buffer size %d\n",(int)buf.size()); The output of 32bit machine is 37...

cudaMemcpy doesn't work in 64 bits

cuda,32bit-64bit
I made a very simple CUDA kernel which populates an array of 100 elements with f[i]=i (and checked using assert in another kernel that it had indeed done so). #include<stdio.h> #include<assert.h> //definizione di gpuErrchk __global__ void setToItself(int* vect){ vect[threadIdx.x] = threadIdx.x; } int main(){ int* a_d; gpuErrchk( cudaMalloc(&a_d, 100 *...

My 64 bit machine can only store 4 bytes each memory location

c,memory,gdb,64bit,32bit-64bit
My computer is 64bit mac. How many bytes of information is stored in one of these locations in memory? When I tried something in gdb x /2x first 0x7ffff661c020: 0xf661b020 0x00007fff My code is #define PUT(p, val) (*((size_t *)(p)) = (val)) PUT(first, (size_t)some pointers); I use gcc -g to compile...