PureBasic 6.00 released !

Developed or developing a new product in PureBasic? Tell the world about it.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.00 Alpha 1 released !

Post by User_Russian »

In this alpha version is the /PREPROCESS command not supported?
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

Re: PureBasic 6.00 Alpha 1 released !

Post by akee »

Thanks Fed & PureBasic team... Looking forward to the release.
Last edited by akee on Wed May 19, 2021 7:32 pm, edited 1 time in total.
firace
Addict
Addict
Posts: 946
Joined: Wed Nov 09, 2011 8:58 am

Re: PureBasic 6.00 Alpha 1 released !

Post by firace »

I managed to compile one test program successfully, but now I keep getting the following error message:

Code: Select all

---------------------------
PureBasic
---------------------------
The compiler isn't loaded yet... please try again.
---------------------------
OK   
---------------------------
Any ideas? I did select the C compiler in the dropdown.

EDIT: Resolved! Entirely my mistake...
Last edited by firace on Wed May 19, 2021 7:18 pm, edited 1 time in total.
Ground0
User
User
Posts: 41
Joined: Fri Jun 09, 2006 10:20 pm
Location: Stilli, Schweiz
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by Ground0 »

I did some short tests... and wow amazing ... Mostly works until now fine with Wine and Linux (ASM and C backend Compiler) :-)

I hope the Linux Version is also soon ready.
Sys 1 HW: Ryzen 7 3700X, 32GB RAM, RX 5700, NVME 512GiB And SATA 2TiB OS: openSUSE Tumbleweed x64
Sys 2 HW: 7 1700X, 16GB RAM, R7 360, SSD 480GiB & 1TiB OS: "
Sys 3 NB: HP envy X360, 5 2500U ,16GB RAM, NVME 256Gib OS: " zus. Win. 10 x64
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic 6.00 Alpha 1 released !

Post by Keya »

Fred wrote: Wed May 19, 2021 10:08 am C Backend limitations:
- No Label address in datasection (?Label)
Does this render DataSection useless? (how to access data objects in the DataSection without a label?)
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by Fred »

It only this syntax:

Code: Select all

Data.i ?Label
Which is not supported
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PureBasic 6.00 Alpha 1 released !

Post by StarBootics »

Ground0 wrote: Wed May 19, 2021 4:20 pm II hope the Linux Version is also soon ready.
+1
The Stone Age did not end due to a shortage of stones !
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: PureBasic 6.00 Alpha 1 released !

Post by mk-soft »

Thank you Fred,

so we can start testing the basic functions early (and spezial function).
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
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.00 Alpha 1 released !

Post by User_Russian »

Many programs have this error when compiling

Code: Select all

purebasic.c:3783:1: warning: implicit declaration of function 'SYS_FastAllocateStringFree4'; did you mean 'SYS_FastAllocateString4'? [-Wimplicit-function-declaration]
And this (run with a debugger)

Code: Select all

purebasic.c:21893:2: error: unknown type name 'PUSH'

  PUSH esp

  ^~~~

purebasic.c:21894:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'PUSH'

  PUSH dword PM_386

  ^~~~

...

                ^~~~~~~~~~~~~~~~~~~~~~~~
Unfortunately, I have not yet managed to get these errors on simple programs and I cannot post an example code on the forum.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.00 Alpha 1 released !

Post by User_Russian »

Code

Code: Select all

!__attribute__((optimize("-Ofast")))
Procedure t()
EndProcedure
t()
Result

Code: Select all

// Procedure t()
static integer f_t() {
integer r=0;
// EndProcedure
end:
return r;
}
// 
...
...
...
...
// 
void ___chkstk_ms(integer a) { return; }
int __stdcall WinMain(void *instance, void *prevInstance, void *cmdLine, int cmdShow) {
PB_Instance = GetModuleHandleW(0);
PB_MemoryBase = HeapCreate(0,4096,0);
// !__attribute__((optimize("-Ofast")))
__attribute__((optimize("-Ofast")))
// t()
integer rr0=f_t();
SYS_Quit();
}
This does not work. Attribute does not apply to procedure!
User avatar
oreopa
Enthusiast
Enthusiast
Posts: 283
Joined: Sat Jun 24, 2006 3:29 am
Location: Edinburgh, Scotland.

Re: PureBasic 6.00 Alpha 1 released !

Post by oreopa »

Keya wrote: Wed May 19, 2021 7:55 pm
Fred wrote: Wed May 19, 2021 10:08 am C Backend limitations:
- No Label address in datasection (?Label)
Does this render DataSection useless? (how to access data objects in the DataSection without a label?)
I misinterpreted it the same way... but it's actually perfectly described in the text. ;)

Thanx Fred and team.
Proud supporter of PB! * Musician * C64/6502 Freak
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic 6.00 Alpha 1 released !

Post by Keya »

oreopa wrote: Thu May 20, 2021 12:44 am I misinterpreted it the same way... but it's actually perfectly described in the text. ;)
Well I'm still confused about it - how to access data in DataSection when there's no ?label ?
User avatar
StarBootics
Addict
Addict
Posts: 1006
Joined: Sun Jul 07, 2013 11:35 am
Location: Canada

Re: PureBasic 6.00 Alpha 1 released !

Post by StarBootics »

If I understand it correctly, something like this is not supported yet :

Code: Select all

DataSection
   VTable:
      Data.i ?Procedures ; <- This thing here
   Procedures:
      Data.i @Ceci(), @Cela()
  EndDataSection
Why you would like to do that ? I have no idea !

Best regards
StarBootics
The Stone Age did not end due to a shortage of stones !
User avatar
STARGÅTE
Addict
Addict
Posts: 2226
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: PureBasic 6.00 Alpha 1 released !

Post by STARGÅTE »

You can still use ?Label to get the address of a label: in a data section.
But you can not use (at the moment) such syntax "?Label" in a data section itself.
PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
User avatar
Keya
Addict
Addict
Posts: 1890
Joined: Thu Jun 04, 2015 7:10 am

Re: PureBasic 6.00 Alpha 1 released !

Post by Keya »

STARGÅTE wrote: Thu May 20, 2021 12:59 am You can still use ?Label to get the address of a label: in a data section.
But you can not use (at the moment) such syntax "?Label" in a data section itself.
Ahh ok thankyou for clarifying, that makes sense. I think I've only used ?Label within a DataSection once anyway (for a jump table, which isn't important), so it seems 99% of my source code that uses DataSection should still work fine - cool! sorry to Fred for my misunderstanding
Last edited by Keya on Thu May 20, 2021 1:29 am, edited 1 time in total.
Post Reply