Home > Back-end >  Is the issue of 32-bit and 64 - bit
Is the issue of 32-bit and 64 - bit

Time:09-29

You used on the original machine is 32-bit compiler, on the new system USES a 64 - bit compilers, a 64 - bit compiled program, not how to debug?

CodePudding user response:

"How to make 32-bit compiler program in the 64 - bit system normal operation"
http://blog.csdn.net/lyhoo163/article/details/26615191

CodePudding user response:

http://http://blog.csdn.net/lyhoo163/article/details/26615191

CodePudding user response:

How to make a 32-bit programs compiled in a 64 - bit system normal operation of the

From 32-bit operating system in 64, is a qualitative leap for the user, due to the CPU reads the data width, doubled the speed and accuracy are the leaping, at the same time, the change of the way of reading and writing, CPU for programmers, the need to adapt to follow, though, a 64 - bit systems support 32-bit programs, but is conditional, because the system change to the operation of the CPU, some in 32-bit operating on, cannot be in 64 in the operation, for example, by calling the underlying software, through the assembly source program to read and write data, run on a 32-bit freely, in 64 the problems, perform error,
In terms of development tools, based on Java, the.net tools can support 64 - bit platform, well because they are not through a call to the underlying implementation code, but based on. NET calls, for Delphi, since it is closely related to the operating system, and its associated data types, the operating system's change is very big, such as the SDK so from 32-bit to 64 - bit migration will appear some difficulties, as for the assembly language, the change of it will be bigger,
Recently the author, encountered a problem: on 32-bit compiler (C/S) three layers of database management system, due to the client/server operating system upgraded by 32 bits to 64 bits, so that the original server (program) can not run on 64 - bit server system, therefore, the author through improving code, finally realizes "the 32-bit programs can run on a 64 - bit system to normal", the purpose of the
The following is the author, the preliminary practice, only for the colleague reference:
1, unit modified for involving the ASM code, USES the API to replace,
2, for some references to read and write the hardware unit, most use ASM code, cancel the unit reference,
3, as far as possible do not use third party controls, in particular, there is no source of third party controls, (including the ASM code)
Hardware unit 4, modified, speaking, reading and writing, and separately in a 64 - bit machine, debugging, main validation:
(1) can be run (support code),
(2) the return value 32-bit and 64 - bit,
Through, the code above improvements, the compiled program, normal operation in 64,

CodePudding user response:

Programs compiled a 64 - bit system, as long as you compile goal is a 32-bit program, under normal circumstances can run under 32 bit, I have been using 64 system, didn't find any problem now,

CodePudding user response:

Program, compiled a 64 - bit system can run under 32 bit,
But after 32-bit system compile 32-bit programs, not necessarily in 64, the normal operation, with reference to the third floor, can be well solved, realize the 32-bit compiler program, perfect to run in 64,
  • Related