Page 4 of 7

Re: PureBasic 6.01 beta 4 is available

Posted: Fri Feb 17, 2023 5:05 pm
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.

Re: PureBasic 6.01 beta 4 is available

Posted: Fri Feb 17, 2023 5:24 pm
by skywalk
Yes, I actually have an error with ASM cmd line compile /OPTIMIZER but not using the IDE with [x] Optimize generated code?

Re: PureBasic 6.01 beta 4 is available

Posted: Fri Feb 17, 2023 5:41 pm
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.

Re: PureBasic 6.01 beta 4 is available

Posted: Fri Feb 17, 2023 5:42 pm
by mk-soft
Beta 4 already installed?
Only works with Beta 4, but I don't see any noticeable difference at first glance.

Re: PureBasic 6.01 beta 4 is available

Posted: Sat Feb 18, 2023 7:48 am
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).

Re: PureBasic 6.01 beta 4 is available

Posted: Sat Feb 18, 2023 12:57 pm
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 :!:

Re: PureBasic 6.01 beta 4 is available

Posted: Sat Feb 18, 2023 2:44 pm
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.

Re: PureBasic 6.01 beta 4 is available

Posted: Sun Feb 19, 2023 12:53 am
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

Re: PureBasic 6.01 beta 4 is available

Posted: Sun Feb 19, 2023 1:41 am
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.

Re: PureBasic 6.01 beta 4 is available

Posted: Sun Feb 19, 2023 1:59 am
by BarryG
Thanks! And yeah, it's silly that it's not a default option.

Re: PureBasic 6.01 beta 4 is available

Posted: Sun Feb 19, 2023 1:31 pm
by jack
one of my programs compiled with the current beta 4 is almost 3 times faster :D

Re: PureBasic 6.01 beta 4 is available

Posted: Sat Feb 25, 2023 5:21 am
by akee
Please help add PackEntryDate() for 6.01. Thank you...

Re: PureBasic 6.01 beta 4 is available

Posted: Sat Feb 25, 2023 2:02 pm
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.

Re: PureBasic 6.01 beta 5 is available

Posted: Fri Mar 03, 2023 5:38 pm
by Fred

Re: PureBasic 6.01 beta 5 is available

Posted: Fri Mar 03, 2023 5:58 pm
by Little John
Cool. 8) Many thanks :!: