PureBasic 6.01 LTS is released !

Developed or developing a new product in PureBasic? Tell the world about it.
Fred
Administrator
Administrator
Posts: 16681
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.01 beta 4 is available

Post by Fred »

Yes, you can now deactivate the asm peepehole optimizer if you don't want it when creating your app. Before it was always enabled when creating the executable, but it's better consistency with the C compiler to have it an option (and if there is a bug hidden in the optimizer, you could still generate your exe without the debugger).

You can also toy with /COMMENTED to see the difference between off/on for the asm backend.
User avatar
skywalk
Addict
Addict
Posts: 3996
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

Re: PureBasic 6.01 beta 4 is available

Post by skywalk »

Yes, I actually have an error with ASM cmd line compile /OPTIMIZER but not using the IDE with [x] Optimize generated code?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: PureBasic 6.01 beta 4 is available

Post by nsstudios »

That's cool. Thank you!
Fred wrote: Fri Feb 17, 2023 5:05 pm Yes, you can now deactivate the asm peepehole optimizer if you don't want it when creating your app. Before it was always enabled when creating the executable, but it's better consistency with the C compiler to have it an option (and if there is a bug hidden in the optimizer, you could still generate your exe without the debugger).

You can also toy with /COMMENTED to see the difference between off/on for the asm backend.
User avatar
mk-soft
Always Here
Always Here
Posts: 5398
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.01 beta 4 is available

Post by mk-soft »

Beta 4 already installed?
Only works with Beta 4, but I don't see any noticeable difference at first glance.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Denis
Enthusiast
Enthusiast
Posts: 704
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Re: PureBasic 6.01 beta 4 is available

Post by Denis »

My project 6.01 b4 (x64) - Windows only

(PureIconManager)
ASM without optimization
exe size : 1624 Kb

ASM with optimization
exe size : 1646 Kb

Optimization seems to be for speed, note size (I recompiled twice to be sure).

another project
(management of my personal mycological library)
ASM without optimization
exe size : 1077 Kb

ASM with optimization
exe size : 1079 Kb

Optimization seems to be for speed, note size (I recompiled twice to be sure).
A+
Denis
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 6.01 beta 4 is available

Post by Little John »

Fred wrote: Fri Jan 20, 2023 1:33 pm beta 4 is out, with some more fixes. This will be the last beta for now, so be sure to test it properly so we can have a good final release !
Note: The optimizer needs to be manually enabled for ASM backend as well to have any effect.
The event handling code has been modified, so if you find something odd in event propagation, please report it.
I tested PB 6.01 beta 4 x64 on Windows 11 with several sources, using the ASM and the C backend. Everything worked fine, so thank you very much, Fred :!:
User avatar
mk-soft
Always Here
Always Here
Posts: 5398
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.01 beta 4 is available

Post by mk-soft »

Big Thanks,
I haven't tested everything yet, but so far it works very well and the c-backend is at least twice as fast as ASM. ;)

Please look for new bugs macOS Console. Unfortunately it is not yet [DONE] since the first beta.

The other open reported bugs will come soon.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.01 beta 4 is available

Post by BarryG »

mk-soft wrote: Sat Feb 18, 2023 2:44 pmthe c-backend is at least twice as fast as ASM
Where do I enable the C backend again? I keep forgetting because it's not anywhere in the Preferences. It really needs to be a Compiler Option that is easily found, because it's not there with a default PureBasic install. See:

Image
nsstudios
Enthusiast
Enthusiast
Posts: 274
Joined: Wed Aug 28, 2019 1:01 pm
Location: Serbia
Contact:

Re: PureBasic 6.01 beta 4 is available

Post by nsstudios »

You have to manually add it, like you would if you have both 32 bit and 64 bit versions, or perhaps multiple versions of PB in general.
Go to file menu, preferences, compiler, click the ... to browse for the executable.
Go to where you installed PB, compilers/pbcompilerc.exe on windows, PureBasic.app/Contents/Resources/compilers/pbcompilerc on MacOS, ~/purebasic/compilers/pbcompilerc or something similar on Linux, then click add once you're out of the file requester, then you can select it as default in preferences/defaults, or select the compiler per-file in compiler menu/compiler options/use compiler.
I agree that it should probably come pre-added.
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.01 beta 4 is available

Post by BarryG »

Thanks! And yeah, it's silly that it's not a default option.
jack
Addict
Addict
Posts: 1336
Joined: Fri Apr 25, 2003 11:10 pm

Re: PureBasic 6.01 beta 4 is available

Post by jack »

one of my programs compiled with the current beta 4 is almost 3 times faster :D
akee
Enthusiast
Enthusiast
Posts: 477
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 6.01 beta 4 is available

Post by akee »

Please help add PackEntryDate() for 6.01. Thank you...
wombats
Enthusiast
Enthusiast
Posts: 664
Joined: Thu Dec 29, 2011 5:03 pm

Re: PureBasic 6.01 beta 4 is available

Post by wombats »

My project is broken in Beta 4 on macOS. I'm using the TabBarGadget and unless I comment out the BindEvent lines setting up events for that, it immediately crashes. Then the events in other areas act strangely. I'm trying to see if I can create a small example to put in the bugs forum.
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 6.01 beta 5 is available

Post by Little John »

Cool. 8) Many thanks :!:
Post Reply