Separation of PB x86 and x64

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
jassing
Addict
Addict
Posts: 1885
Joined: Wed Feb 17, 2010 12:00 am

Separation of PB x86 and x64

Post by jassing »

It would be nice if you could separate the settings between x64 and x86 PureBasic installations.

For instance, Regardless of if I open x64 or x86 the same set of tools show up -- despite some being only relevant to one or the other. Similarly, it opens the same files.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Separation of PB x86 and x64

Post by Thunder93 »

You can by using PB commandline parameters.
ʽʽ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
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Separation of PB x86 and x64

Post by Thunder93 »

I update or make duplication of the PB shortcuts and update the shortcuts target fields to include...

*:\Program Files (x86)\PureBasic 5.11\PureBasic.exe" /P "C:\Users\YourName\AppData\Roaming\PB5.11_x86\PureBasic.prefs"/T "C:\Users\YourName\AppData\Roaming\PB5.11_x86\Templates.prefs" /A "C:\Users\YourName\AppData\Roaming\PB5.11_x86\Tools.prefs" /NOEXT

*:\Program Files\PureBasic 5.11\PureBasic.exe" /P "C:\Users\YourName\AppData\Roaming\PB5.11_x64\PureBasic.prefs"/T "C:\Users\YourName\AppData\Roaming\PB5.11_x64\Templates.prefs" /A "C:\Users\YourName\AppData\Roaming\PB5.11_x64\Tools.prefs" /NOEXT

:wink:
ʽʽ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
blueb
Addict
Addict
Posts: 1111
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Re: Separation of PB x86 and x64

Post by blueb »

jassing wrote:It would be nice if you could separate the settings between x64 and x86 PureBasic installations.

For instance, Regardless of if I open x64 or x86 the same set of tools show up -- despite some being only relevant to one or the other. Similarly, it opens the same files.
I'm having the same issue with the Preferences.prefs file...

my Suggestion - Make 32 and 64 bit 'prefs' files independent.

Presently both 32bit and 64bit versions use the same preference files
which is kept in the default location: C:\Users\Bob\AppData\Roaming\PureBasic\PureBasic.prefs

I regularly use the 32bit version but I recently installed the 64bit version in a seperate directory ( E:\PureBasic64)

I assumed each version would have it's own preference file... independent of the other version, but when I made 'Editor Color Scheme' changes to the 64bit version... it applied the changes to the 32bit version as well.

What I want to do is have a different color scheme for each version so that I know that I'm using the 64bit version versus the 32bit version.

Note: There are a lot of other switches that are affected by using the same C:\Users\Bob\AppData\Roaming\PureBasic\PureBasic.prefs file.
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Little John
Addict
Addict
Posts: 4779
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Separation of PB x86 and x64

Post by Little John »

[u]Reference Manual[/u] wrote:To keep the multiple versions from using the same configuration files, the /P /T and /A switches can be used. Furthermore there is the /PORTABLE switch which puts all files back into the PureBasic directory and disabled the creation of the .pb extension.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Separation of PB x86 and x64

Post by blueznl »

-1000

I don't want to even consider having to review my settings for both compilers... Brrr....
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: Separation of PB x86 and x64

Post by Tenaja »

blueznl wrote:-1000

I don't want to even consider having to review my settings for both compilers... Brrr....
+1
User avatar
helpy
Enthusiast
Enthusiast
Posts: 552
Joined: Sat Jun 28, 2003 12:01 am

Re: Separation of PB x86 and x64

Post by helpy »

I do not like the idea of separating the prefs for 32/64 bit.

Actually you only could do this for 32/64 bit IDE and not the 32/64 Bit compiler.
You can call 32 or 64 bit compiler from 64 bit IDE.

cu,
Guido
Windows 10 / Windows 7
PB Last Final / Last Beta Testing
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: Separation of PB x86 and x64

Post by Thunder93 »

I've created a 32bit PB App and placed it into :\Program Files (x86)\PB_Tools\. This 32bit App is added to both PB IDE versions Toolbar. I then able to compile x86 code from x64 PB IDE, and reversed. I'm able to compile x64 code from x86 PB IDE. Through the use of this 32bit PB App, you can have separate prefs.
ʽʽ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
Post Reply