Page 1 of 1
First PureBasic, how was it compiled
Posted: Tue Feb 09, 2021 5:10 pm
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.
Re: First PureBasic, how was it compiled
Posted: Tue Feb 09, 2021 6:03 pm
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.
Re: First PureBasic, how was it compiled
Posted: Tue Feb 09, 2021 8:54 pm
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...

Re: First PureBasic, how was it compiled
Posted: Wed Feb 10, 2021 1:45 am
by BarryG
And from what I remember, the IDE wasn't written in PureBasic originally either; that change came around 2005 or something?
Re: First PureBasic, how was it compiled
Posted: Wed Feb 10, 2021 6:21 am
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.
Re: First PureBasic, how was it compiled
Posted: Wed Feb 10, 2021 11:11 pm
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."
(yes this quote is also related to another nice PC game)
Then it moved to C, and finished in Web-coding (i.e. SpiderBasic).