New PureBasic Backend - C

Started by ricardo_sdl, June 16, 2021, 14:01:13

Previous topic - Next topic

ricardo_sdl

PureBasic has released an alpha version of their new backend: C:
https://www.purebasic.fr/blog/?p=502
The compiler generated code is C, which in turn will be compiled to the native machine language. This could allow the use PureBasic in many different processors and operating systems.
Check my games at:
https://ricardo-sdl.itch.io/

Amon

This is an important move from the Purebasic developers. I'm going to keep an eye on this as I own Purebasic and would love it if it supported more platforms.

Skaven

this is how blitzmax ng also works

Pfaber11

This is very interesting although it would be even better if they upgraded OGRE to the latest version as well . That was my major dislike of Pure Basic the Directx 9.0c needing to be installed to run on windows 10 and for the price tag I think it should be sorted. Apart from that it is a very good language just needs updating a bit that's all. Have a nice day.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

MikeHart

The price needs to be lowered????
You gotta be kidding. 79 Euro for a lifetime license is cheap as fuck. Don't be so cheap and give the developers what they deserve. Or use a different tool that fits your mindset of how things should be priced.

Steve Elliott

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Pfaber11

I apologize it really is a great language.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Aurel [banned]

QuoteI apologize it really is a great language
well i can agree with Mike about money ,i have old 4.5 version
but even is comercial it is not build in a proffesional way than in indie way...
Also is not the fastest among other basic compilers ,this one uses FASM as final builder.
But who i am ..i am not real user of PureBasic in any sense.
(Y)

Pfaber11

I haven't used it much either but I did find it very fast compared to other basics I've tried. This C thing should prove interesting
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

ricardo_sdl

Quote from: Aurel on June 18, 2021, 13:39:39
QuoteI apologize it really is a great language
well i can agree with Mike about money ,i have old 4.5 version
but even is comercial it is not build in a proffesional way than in indie way...
Also is not the fastest among other basic compilers ,this one uses FASM as final builder.
But who i am ..i am not real user of PureBasic in any sense.

You mean the code generated is not the fastest or the compiler speed to generate the code? For my use case I think both are good enough, using the fasm as the backend. With PureBasic generating C code we'll be able to get the the many and very efficient optimizations of a C compiler.
Check my games at:
https://ricardo-sdl.itch.io/

MikeHart

That they went for a flat file approach is the main reason that compile times are higher with the c version. The Monkey languages and it's derivates suffer from a similar approach.

Aurel [banned]

well ricardo
i just check your site games..
they are written using SDL with what?
(Y)

ricardo_sdl

They are written in PureBasic, which on default options uses DirectX on windows and SDL and OpenGL on Linux.
Check my games at:
https://ricardo-sdl.itch.io/

Pfaber11

@ Ricardo . Can I get Pure Basic to use open GL on windows instead of Directx 
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

#14
I've just answered my own question and it appears that I can use open GL instead of directx. So my next question is will it run on windows 10 without having to install Directx 9.0c  . I presume it will but would like to have it confirmed . Will Ogre work just the same with Open GL.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz