First PureBasic, how was it compiled

Everything else that doesn't fall into one of the other PB categories.
Jeff8888
User
User
Posts: 38
Joined: Fri Jan 31, 2020 6:48 pm

First PureBasic, how was it compiled

Post by Jeff8888 »

As I understand it, the Pure Basic compiler is written in Pure Basic. This begs the question, how was the first compiler compiled? Sort of a chicken and egg question.
User avatar
Tenaja
Addict
Addict
Posts: 1949
Joined: Tue Nov 09, 2010 10:15 pm

Re: First PureBasic, how was it compiled

Post by Tenaja »

Just a WAG, but the first PB ran on the Amiga. Perhaps Fred will chime in here, but he may have first retargeted that.
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2058
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: First PureBasic, how was it compiled

Post by Andre »

Jeff8888 wrote:As I understand it, the Pure Basic compiler is written in Pure Basic. This begs the question, how was the first compiler compiled? Sort of a chicken and egg question.
Not the PureBasic compiler was written in PureBasic, but the PureBasic IDE, the debugger and so on.

The PureBasic compiler itself was written in in ASM / C(++) as far as I know.
But I don't know the details... ;-)
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
BarryG
Addict
Addict
Posts: 3322
Joined: Thu Apr 18, 2019 8:17 am

Re: First PureBasic, how was it compiled

Post by BarryG »

And from what I remember, the IDE wasn't written in PureBasic originally either; that change came around 2005 or something?
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: First PureBasic, how was it compiled

Post by IceSoft »

Andre wrote:
Jeff8888 wrote: The PureBasic compiler itself was written in in ASM / C(++) as far as I know.
But I don't know the details... ;-)
On Windows it was compiled using Visual Studio2013?
PureBasic use parts of PellesC tools (linker, etc) to compile/link PB executables.
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: First PureBasic, how was it compiled

Post by Lunasole »

As I remember from what I've read (cause I was able only to read some story, as me personally only started learning PB in 2014, after VB6/VB5 and other OOP-experience [and to be exact, there were times before VB, my first-first coding experience was in writing scripts in pseudo-code in Warcraft 3 World Editor, but well that's another story which I'm just remembering from nothing to do now^^)), it started from ASM.

Like:
"In the beginning were the Words,
and the Words made the world.
I am the Words.
The Words are everything.
Where the Words end the world ends.
You cannot go forward in an absence of space.
Repeat."

:mrgreen:

(yes this quote is also related to another nice PC game)

Then it moved to C, and finished in Web-coding (i.e. SpiderBasic).
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
Post Reply