Make already developed application 64 bit enable [duplicate]
Asked Answered
P

2

6

Possible Duplicate:
How to also prepare for 64-bits when migrating to Delphi 2010 and Unicode

I have already developed an application in Delphi 7. Now I need to enable it to support 64 bit.

Predigestion answered 9/6, 2011 at 12:14 Comment(5)
Are you sure you're asking for 64-bit compiler ? It's not released yet at this time. If you want to know if your application will work on 64-bit Windows be sure it will :)Hyperbolic
@daemon_x: You mean to say all the executables build with Delphi 7 will run on 64 bit OS without any errors. have i interpreted correctly? Also if i want to make changes in the code to include features or WIN APIs for 64 bit OS then what will be the impact?Predigestion
to your first question: yes; all the executables build with Delphi 7 will run on 64-bit OS without any errors. And to your second question: none of the released versions of Delphi have 64-bit compiler yet so we can't enjoy full performance of 64-bit OS. I'm saying enjoy performance because from my point of view there will be more performance than new features.Hyperbolic
once you will buy a new version of Delphi with 64-bit compiler you'll need to be ready for this. And as David mentioned there will be much more work to port your source code from AnsiString to Unicode than to prepare it for 64-bit compiler.Hyperbolic
This may be a duplicate, but it's not a duplicate of #1569185 That asks how to prepare for the upcoming 64 bit release. This question asks how to enable 64 bit support for a Delphi 7 app and clearly OP isn't aware of the release plans for dcc64.Egret
E
12

Delphi 7, and indeed all released Delphi Win32 versions, only produce 32 bit executables. However, 32 bit executables run perfectly well on 64 bit operating systems through the WOW64 emulator. Although this is an emulator, a word that usually implies degraded performance, WOW64 performance is not readily distinguishable from native 64 bit performance.

If you wish to port your Delphi app to 64 bit you need to wait for the next version of Delphi to be released which will produce 64 bit executables.

Then you will have to port your app from Delphi 7 to the latest version of Delphi. This will be a big job because you will also have to port from ANSI string code to Unicode string code. In my view this part of the port will be more time consuming than the 32 to 64 bit part and if you wanted to get a head start you would be wise to start the Unicode port now by upgrading to Delphi XE.

Egret answered 9/6, 2011 at 13:21 Comment(7)
The next release of Delphi will support both 32 and 64 bit targets, and will be released in three-four months, AFAIK. Thereby there's IMHO no need to upgrade to XE - one would need to upgrade twice in a few months or buy SA. Wait for the next version, then start by porting to unicode first as a 32 bit target, then port to 64 bit - just don't attempt both porting at once, it could be too risky.Arvillaarvin
@Idsandon I agree with all that. I'm just saying that if you are doing this to a deadline then your could start now with port no. 1, the one to Unicode.Egret
Just to enhance your mentioning of 32bit vs 64bit performance. 32bit runs at speed on 64bit due to the processor still being a native 32bit processor. The only true 64bit processor on the Intel line is the Itanium (IA64). Mainstream 64bit (x86-64) is a 32bit CPU with 64bit extensions (mainly regarding things like memory).Stash
can anyone give me some more information on the performance degradation issues for precompiled Delphi 7 application/executable?Predigestion
@Nilesh There are none. A Delphi 7 app will run on a 64 bit OS at just the same speed as on a 32 bit OS installed on the same machine.Egret
@David: and what about memory consumption and allocation?Predigestion
@Nilesh Not an issue. If anything apps run ever so slightly better on 64 bit OS because the underlying OS can take advantage of more advanced processor features, but the reality is that you simply won't notice any difference.Egret
V
4

You can check this official Embarcadero video which covers the subject.

Vacation answered 9/6, 2011 at 16:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.