PureBasic 6.00 Alpha 5 released !

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

PureBasic 6.00 Alpha 5 released !

Post by Fred »

Hello Everybody,

- Alpha 5 is out and includes now DLL creation and the x86 (32-bit) version for Windows ! It also includes newer import libs for Windows on both x86 and x64 so if you needed to import newer Windows functions, it should now be recognized. The 32-bit linker has been as well updated and now support newer lib formats. Don't hesitate to test as usual, the C backend should be good enough for a wider trial.

- Alpha 4 is ready to test ! We fixed almost all reported bugs (except one), so we hope we are closer to a beta release. Next step is adding DLL support and building the C compiler on Linux and OS X. Don't hesitate to give it a try, and report any differences between the ASM and C backend.

- Alpha 3 is available ! This is big milestone for us, as the IDE fully compile and run using the C backend ! It should be a great step over a stable version, we will continue to work on it and iron up all the reported bugs. Thanks to all the testers !

- Alpha is 2 is out ! Thank you a lot to have spent time to test the new version, we have fixed most of the reported bugs, so don't hesistate to give it another try to make it as good as possible. Please also test the regular compiler (ASM backend) to ensure there is no regression on this compiler. Here are the alpha 2 change list:

Code: Select all

- Removed #PB_Compiler_C constant and replaced it with #PB_Compiler_Backend, with #PB_Backend_C and #PB_Backend_Asm values
- Added Purifier support
- Updated fasm, polink, polib and porc to lastest versions
After months of development, we are very proud to release the next generation of PureBasic ! As shared on the blog (https://blog.purebasic.com), we added a new C backend to solve the problem of new CPU architectures.

For now, only the Windows x64 version is available for testing. It's an alpha-version, so don't expect your big programs to compile and run fawlessly on it. The main purpose for now is to squash all the remaining bugs (and it will have probably a ton) to have the C backend at the same level than the current ASM backend. For this, we opened a new specific forum to report C related backend.

How to proceed:
- In the IDE, add a new compiler (File -> Preferences -> Compiler -> Choose 'pbcompilerc' file with the file requester -> Add). It should now appear in the list. In the 'Compiler options', you should be able to select it in the combobox.
- Compile a small program. If something is wrong, try to reduce the faulty code to the smallest snippet and post it in the bug forum.
- Also please test your large programs with the regular ASM backend compiler to ensures everything still work, as we modified a lot of code in it as well.

C Backend limitations:

Code: Select all

- No Label address in datasection (?Label)
- No Label operation in 'Debug' output window
- No DLL creation support (in progress)
- Empty Structure are not supported (may be add a compiler error on PB side ?)
- Float to long rounding are not exactly the same (use bankerrounding)
New stuffs:

Code: Select all

- Added /OPTIMIZER flag to the commandline, and a 'Use code optimizer' checkbox in IDE 'Compiler Options' to turn on C optimizations
- Added #PB_Compiler_32Bit, #PB_Compiler_64Bit and #PB_Processor_C constants
Don't hesitate to play with it and send you feedback ! Of course, don't use it in production, it's an alpha version and could lead to disastrous bugs.

You can download it on your online account.

Have fun !

The Fantaisie Software Team
User avatar
StarBootics
Enthusiast
Enthusiast
Posts: 716
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PureBasic 6.00 Alpha 1 released !

Post by StarBootics »

Hello everyone,

I wish I could help but I don't have a computer with Windows x64. But as soon as the Linux version will be available I will. I hope it will be soon. :wink:

I guess we need to start somewhere.

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
BarryG
Addict
Addict
Posts: 1718
Joined: Thu Apr 18, 2019 8:17 am

Re: PureBasic 6.00 Alpha 1 released !

Post by BarryG »

Cool, I will try it ASAP. Thanks!
Marc56us
Addict
Addict
Posts: 1108
Joined: Sat Feb 08, 2014 3:26 pm
Location: France

Re: PureBasic 6.00 Alpha 1 released !

Post by Marc56us »

Installed and tested with some of my (horrible) programs: everything works and the compilation doesn't seem to be slower (but my biggest project is only 11000 lines)

I'm Happy, thanks Fred and Team 8)
(English is not my native language, I use an online translator.)
User avatar
STARGÅTE
Addict
Addict
Posts: 1619
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by STARGÅTE »

I try to start the IDE but I receive the following error:
---------------------------
Error
---------------------------
An Error has been detected in the IDE!

Error: Invalid memory access

File : c:\purebasic\svn\v5.80\GitHub\purebasic-dev\PureBasicIDE\AddTools.pb

Line : 270



IDE build on 05/19/2021 [10:32] by Fred

Branch: Revision:
---------------------------
OK
---------------------------
PB 5.73 ― Win 10, 20H2 ― Ryzen 9 3900X ― Radeon RX 5600 XT ITX ― Vivaldi 4.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
RSBasic
Moderator
Moderator
Posts: 1122
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by RSBasic »

Great! Thank you for your new version!
ImageImageImageImage
User avatar
STARGÅTE
Addict
Addict
Posts: 1619
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by STARGÅTE »

Now, I tried to use the current IDE and added the C-compiler, but than I get, just with a simple "Debug 1":
---------------------------
PureBasic - Assembler error
---------------------------
gcc: error: CreateProcess: No such file or directory


---------------------------
OK
---------------------------
PB 5.73 ― Win 10, 20H2 ― Ryzen 9 3900X ― Radeon RX 5600 XT ITX ― Vivaldi 4.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Little John
Addict
Addict
Posts: 4007
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 6.00 Alpha 1 released !

Post by Little John »

Cool. 8) This is exciting news!
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups
Fred
Administrator
Administrator
Posts: 14413
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by Fred »

Marc56us wrote: Wed May 19, 2021 10:38 am Installed and tested with some of my (horrible) programs: everything works and the compilation doesn't seem to be slower (but my biggest project is only 11000 lines)

I'm Happy, thanks Fred and Team 8)
It looks suspicious :). Are you sure you are using the new C backend ? You need to change it manually in Compiler Options.
Marc56us
Addict
Addict
Posts: 1108
Joined: Sat Feb 08, 2014 3:26 pm
Location: France

Re: PureBasic 6.00 Alpha 1 released !

Post by Marc56us »

Now, I tried to use the current IDE and added the C-compiler, but than I get, just with a simple "Debug 1":
In the IDE (6.00) , add a new compiler (File -> Preferences -> Compiler -> Choose 'pbcompilerc' file with the file requester -> Add

As a beta version, install v6 in another directory of 5.x :wink:

Edit: I was wrong, using 6.00 compiler (so ASM) not C backend
Last edited by Marc56us on Wed May 19, 2021 11:20 am, edited 1 time in total.
(English is not my native language, I use an online translator.)
Fred
Administrator
Administrator
Posts: 14413
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by Fred »

STARGÅTE wrote: Wed May 19, 2021 10:52 am Now, I tried to use the current IDE and added the C-compiler, but than I get, just with a simple "Debug 1":
---------------------------
PureBasic - Assembler error
---------------------------
gcc: error: CreateProcess: No such file or directory


---------------------------
OK
---------------------------
It means it doesn't find 'as.exe' mostly. Did you just copy the old IDE in the new 6.00 directory ?
wombats
Enthusiast
Enthusiast
Posts: 604
Joined: Thu Dec 29, 2011 5:03 pm

Re: PureBasic 6.00 Alpha 1 released !

Post by wombats »

Fred wrote: Wed May 19, 2021 11:01 am
STARGÅTE wrote: Wed May 19, 2021 10:52 am Now, I tried to use the current IDE and added the C-compiler, but than I get, just with a simple "Debug 1":
---------------------------
PureBasic - Assembler error
---------------------------
gcc: error: CreateProcess: No such file or directory


---------------------------
OK
---------------------------
It means it doesn't find 'as.exe' mostly. Did you just copy the old IDE in the new 6.00 directory ?
I get the same error. I posted in the bug forum.
Marc56us
Addict
Addict
Posts: 1108
Joined: Sat Feb 08, 2014 3:26 pm
Location: France

Re: PureBasic 6.00 Alpha 1 released !

Post by Marc56us »

Fred wrote: Wed May 19, 2021 11:00 am
Marc56us wrote: Wed May 19, 2021 10:38 am Installed and tested with some of my (horrible) programs: everything works and the compilation doesn't seem to be slower (but my biggest project is only 11000 lines)

I'm Happy, thanks Fred and Team 8)
It looks suspicious :). Are you sure you are using the new C backend ? You need to change it manually in Compiler Options.
Oui, tu as raison, c'était 6.00 et pas C backend :cry:
(English is not my native language, I use an online translator.)
User avatar
STARGÅTE
Addict
Addict
Posts: 1619
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by STARGÅTE »

Fred wrote: Wed May 19, 2021 11:01 am
STARGÅTE wrote: Wed May 19, 2021 10:52 am Now, I tried to use the current IDE and added the C-compiler, but than I get, just with a simple "Debug 1":
---------------------------
PureBasic - Assembler error
---------------------------
gcc: error: CreateProcess: No such file or directory


---------------------------
OK
---------------------------
It means it doesn't find 'as.exe' mostly. Did you just copy the old IDE in the new 6.00 directory ?
I make a fresh installation of the PB 6.00 version, and deleted also all app-data entries.
The Location is: "C:\Program Files\PureBasic600\Compilers"
Normal Compiler works.
PB 5.73 ― Win 10, 20H2 ― Ryzen 9 3900X ― Radeon RX 5600 XT ITX ― Vivaldi 4.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
Marc56us
Addict
Addict
Posts: 1108
Joined: Sat Feb 08, 2014 3:26 pm
Location: France

Re: PureBasic 6.00 Alpha 1 released !

Post by Marc56us »

gcc: error: CreateProcess: No such file or directory
I think we have to add gcc.exe PATH somewhere (PB IDE ? Win PATH ?)
:wink:

Edit
Yes, solved for me
added PB Compiler path to windows env PATH
Last edited by Marc56us on Wed May 19, 2021 12:31 pm, edited 2 times in total.
(English is not my native language, I use an online translator.)
Post Reply