-
May 16th, 2011, 04:39 AM
#1
64-bit Conversion
I have an existing VC++ code, its a DLL, along with its MSI setup. Now I have to convert the whole process into 64-bit, therefore if I simply compile it with X64 compiler, will it be sufficient or do I have to convert all the datatypes and functiona into 64-bit too?
What will be the possible consequence if I just compile it with 64-bit compiler and don't convert the datatypes and functions?
Thanks in Advance
-
May 16th, 2011, 05:06 AM
#2
Re: 64-bit Conversion
Is there any reason to use 64-bits ? I mean, do you have specific 64 bits instructions ?
-
May 16th, 2011, 05:39 AM
#3
Re: 64-bit Conversion
You don't need to change any type moving to x64. int remains int, char remains char. Pointers in x64 configuration are 64 bit length, this is done automatically. So, if your project is compiled and runs in 64 bit, you are OK.
-
May 16th, 2011, 06:09 AM
#4
Re: 64-bit Conversion
Originally Posted by Alex F
You don't need to change any type moving to x64. int remains int, char remains char. Pointers in x64 configuration are 64 bit length, this is done automatically. So, if your project is compiled and runs in 64 bit, you are OK.
Thanks
Originally Posted by Skizmo
Is there any reason to use 64-bits ? I mean, do you have specific 64 bits instructions ?
Its the end user requirement that they want their application to be converted into 64-bit
-
May 16th, 2011, 06:17 AM
#5
Re: 64-bit Conversion
Originally Posted by maverick786us
Its the end user requirement that they want their application to be converted into 64-bit
In other words, the person(s) who made the requirements don't know what they are talking about .
-
May 16th, 2011, 08:16 AM
#6
Re: 64-bit Conversion
For some applications it is completely OK to leave them 32 bit. Some applications can run much better on x64 computer with large physical memory, when they are compiled in 64 bit. Otherwise, what is the point in using 64 bit processor?
-
May 16th, 2011, 08:32 AM
#7
Re: 64-bit Conversion
Originally Posted by Skizmo
In other words, the person(s) who made the requirements don't know what they are talking about .
He who pays the piper calls the tune.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
May 16th, 2011, 09:30 AM
#8
Re: 64-bit Conversion
Originally Posted by Alex F
For some applications it is completely OK to leave them 32 bit. Some applications can run much better on x64 computer with large physical memory, when they are compiled in 64 bit. Otherwise, what is the point in using 64 bit processor?
The point is that a 64-bit processor has 64 bit instructions that can make stuff go faster (or easier). Problem with this is that not a lot of programmers actually use them or even know how to use them. And yes, the memory addressing is bigger. Besides those options, there isn't a lot more. Same as the multi-core cpu's. If your app is not aware of them (and thus not using the parallel processing options), multi-core isn't a big enhancement. Bought a 6core phenom II a few weeks ago, and now I can perfectly see in my taskmanager (ubuntu) that usually 2-3 core are doing absolutely nothing.
-
May 16th, 2011, 09:45 AM
#9
Re: 64-bit Conversion
Originally Posted by Skizmo
Problem with this is that not a lot of programmers actually use them or even know how to use them.
C++ programmers don't need to know how to use 64 bit Assembly instructions - its quite enough that compiler knows.
Regarding multi core processor - Microsoft and Intel try to convince us that without using their parallel libraries our applications will not run better on multi core processors. This is correct only for single-threaded application running exclusively. If number of CPU-intensive applications are running, or even one multi-threaded application is running on multi core CPU, performance is better without changing existing code.
I agree that every programmer must think before moving to 64 bit - sometimes it is not necessary. But this doesn't mean, that every programmer who decides to support 64 bit, doesn't know what he is talking about.
-
May 19th, 2011, 12:12 AM
#10
Re: 64-bit Conversion
Originally Posted by Alex F
You don't need to change any type moving to x64. int remains int, char remains char. Pointers in x64 configuration are 64 bit length, this is done automatically. So, if your project is compiled and runs in 64 bit, you are OK.
Regarding pointers issue is not that straightforward it depend how you wrote your 32bit application, if you followed the rules you are ok if not you MUST change your code.
Cheers
-
May 19th, 2011, 06:32 AM
#11
Re: 64-bit Conversion
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|