32bit or 64bit for compatibility?

Everything else that doesn't fall into one of the other PB categories.
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

32bit or 64bit for compatibility?

Post by MachineCode »

Now that I have Win 7 (64bit), should I using the 64bit version of PureBasic? Will the exes created by it work on XP (32bit) though?
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
User avatar
luis
Addict
Addict
Posts: 3895
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: 32bit or 64bit for compatibility?

Post by luis »

MachineCode wrote:Now that I have Win 7 (64bit), should I using the 64bit version of PureBasic? Will the exes created by it work on XP (32bit) though?
The x64 version of PB generate only x64 code, so the exe work on 64 bit OS only.
You can install both versions on the same machine.
Both IDEs can invoke both the compilers though, so you can use one IDE to generate 32 and 64 bit programs, provided you have both compilers installed.
"Have you tried turning it off and on again ?"
MachineCode
Addict
Addict
Posts: 1482
Joined: Tue Feb 22, 2011 1:16 pm

Re: 32bit or 64bit for compatibility?

Post by MachineCode »

Thanks Luis, I'll just use the 32bit PureBasic so I don't have to think about anything.
Microsoft Visual Basic only lasted 7 short years: 1991 to 1998.
PureBasic: Born in 1998 and still going strong to this very day!
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: 32bit or 64bit for compatibility?

Post by jack »

has anyone installed both version of PB on the same machine?
I would like to know the steps required so as not to have conflicts between the two.
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 796
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: 32bit or 64bit for compatibility?

Post by Zebuddi123 »

Hi Install both versions. In "preferences\compiler" select the 64|32 bit compiler from the file requester, "C:\Program Files (86)\PureBasic\Compilers"|"C:\Program Files\PureBasic\Compilers" depending on whether your using 32|64 bit IDE and click "add"

When compiling select the target OS 32|64 bit.

Dont forget that there are more userlibs compiled as 32 bit than 64 bit, so make sure you have 64 bit version of the 32 bit userlibs you use if available and install them in the 64 bit userlibs directory.

Zebuddi. :D
malleo, caput, bang. Ego, comprehendunt in tempore
jack
Addict
Addict
Posts: 1358
Joined: Fri Apr 25, 2003 11:10 pm

Re: 32bit or 64bit for compatibility?

Post by jack »

thank you Zebuddi :)
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

Is this the best way to have both versions installed? I prefer to only keep 64bit installed. But if the need occurs, I would like to be able to push to a 32bit machine.

Would be nice if the 64bit version came with the 32bit compiler. For ease of use.

- np
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: 32bit or 64bit for compatibility?

Post by dobro »

2 versions =

a folder 5.42 Pb / .... and inside:


1 - Pb 5.42 / X86 / <--- Pb install 32 bit here
1- Pb 5.42 / X64 / <--- Pb install 64 bit here

and for each version of Purebasic

at Home :

for any Pb version : (no in Program_file , but in a personalized folder of partition D:\..
Image

sample in Pb 5_20 folder :
Image

in x64 Folder (Pb 64 bits )
Image

in x86 Folder (Pb 32 bits )
Image

and this for All Version :)
Last edited by dobro on Sat Jul 02, 2016 8:16 pm, edited 1 time in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

Ok, that helps. I will probably do:

c:\pb\32\
c:\pb\64\

Versions don't matter to me, I always use the most recent (beta or full). Plus it helps with the paths and such.

My follow-up question would be, regarding the userlibs as already mentioned in this thread. Any tips on that?

Cheers!

- np
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: 32bit or 64bit for compatibility?

Post by dobro »

c:\pb_5_42\32\
c:\pb_5_42\64\

c:\pb_5_5\32\
c:\pb_5_5\64\

believe me, I advise you to name the version number, just because
because of userLibrairies, that will not necessarily updates ...

I'm sure if you develloppes with PB5.42
when will last a PB 5.5, you will still need to 5.42 PB ...
for several reasons
I think: compatibilitée user libraries
future bugs Version 5.5
and syntax changes, which requires a whole re-write a list (more than 16000 lines read)

I advise you to never use a library user, if you do not have the source code!

otherwise, proceeding with a version by folder, each folder of Librairie, is in
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

I will keep older versions of PB, I just wont install them unless there is large need for them. When ever I have major edits to source code, usually to bring the app current. I break out Sublime Text 3.

My main concern about installing multiple versions of PB, is whether or not it would create any havoc within the registry.

Thanks again for the info.

Cheers!

- np
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: 32bit or 64bit for compatibility?

Post by Thunder93 »

NoahPhense wrote:...create any havoc within the registry.
It won't it'll keep updating with the latest PB information, unless you installing a previous version.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

Thunder93 wrote:
NoahPhense wrote:...create any havoc within the registry.
It won't it'll keep updating with the latest PB information, unless you installing a previous version.
Excellent, thanks.

Currently running: PureBasic 5.50 beta 1 (Windows - x64) Just need to get x86 running along side it for all those 32bit machines still out there.

- np
User avatar
NoahPhense
Addict
Addict
Posts: 1999
Joined: Thu Oct 16, 2003 8:30 pm
Location: North Florida

Re: 32bit or 64bit for compatibility?

Post by NoahPhense »

dobro wrote:c:\pb_5_42\32\
c:\pb_5_42\64\

c:\pb_5_5\32\
c:\pb_5_5\64\
OK, I've changed (my mind) my setup as such:

C:\pb\5_50\32\
C:\pb\5_50\64\

Then, after 5.50 goes LTS, I will start a new install with whatever beta comes next, say:

C:\pb\5_52\32\
C:\pb\5_52\64\

I don't really want to indicate beta or LTS within the file path.

What do you think about this approach?

- np
User avatar
Demivec
Addict
Addict
Posts: 4282
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: 32bit or 64bit for compatibility?

Post by Demivec »

NoahPhense wrote:Then, after 5.50 goes LTS, I will start a new install with whatever beta comes next, say:

C:\pb\5_52\32\
C:\pb\5_52\64\

I don't really want to indicate beta or LTS within the file path.

What do you think about this approach?
There won't be a v5.50 LTS. Because it has added functions since the last LTS it will simply be v5.50 when it's released. Any fixes will be applied to the LTS and released as v5.43 LTS.

Here's how I treat the beta releases.

Following the pattern already shown I use these folders:

Code: Select all

C:\pb\beta\32\
C:\pb\beta\64\
I install them in the corresponding directory, overwriting any previous installation. This allows me to set up a shortcut to launch them that will always run the most recent beta. After the release is finalized the beta is never used until the next version is tested.


Withe both the final releases and the beta versions, I execute them with the '\PORTABLE' switch. This stores their settings in the directories where they are executed from and prevents different versions from conflicting with each other. Any user preferences can be migrated from previous versions.
Post Reply