Page 1 of 2

Switch Compiler 0.2 - Updated 03/04/06!

Posted: Sun Apr 02, 2006 11:12 pm
by Killswitch
Update: 03/04/06

I fixed the bug that Nik found, and I've updated the compiler package. See the download link he provided, or the download button at the end of this post.

I've been busy at work updating my compiler! Apart from all the other stuff it suppoted (+ - * / ( ) ^, floats, longs) I've added in variable type declaration (you can use .l, .f and .s the same way as in PB - variables are no longer automatically set to a long), strings and constants!

The following is all valid:

Code: Select all

#Constant=1

A.s="bob"+jim"
B.s="kim"
C.s=A+B

D.f=#Constnat
E.f=2.1
F.f=D+E
As before write your code in Code.txt and run Compiler.exe - ignroe Optimizer.exe as it's automatically run!

DOWNLOAD

Posted: Mon Apr 03, 2006 12:20 am
by Shannara
Damn ... this is awesome :)

Posted: Mon Apr 03, 2006 12:26 am
by Killswitch
Thanks :D. I must give a big thanks to the guys on the FASM forums who helped me uderstand wsprintf!

Posted: Mon Apr 03, 2006 12:39 am
by Inf0Byt3
Cannot download it. It seems that the site does not support direct linking
from offsite :(.

Posted: Mon Apr 03, 2006 12:44 am
by Shannara
Go To http://www.angelfire.com/planet/purebasicftpreplacem then put http://www.angelfire.com/planet/purebas ... ch_0.2.zip in the browser url space and press enter ;) It'll allow you to download tha way.

Posted: Mon Apr 03, 2006 12:48 am
by Inf0Byt3
Got it :D. Thanks.

Posted: Mon Apr 03, 2006 8:36 am
by Killswitch
Sorry about the dodgey download, my FTP space is knackered so I had to scrape something together at the last minute.

Posted: Mon Apr 03, 2006 12:52 pm
by Inf0Byt3
No problem! About the compiler, you did a great job. I like it.

Posted: Mon Apr 03, 2006 1:50 pm
by Nik
If you want I can host it on a very fast server, you need not pay since we are kind of a community project. Our site is www.sceneproject.org (German), there is also an Advertising Banner you could click on to support us. you can mail me under niklas aaahht sceneproject.org if you are interessted

Posted: Mon Apr 03, 2006 1:58 pm
by Killswitch
That'd be class mate! I can't seem to get your email working - mine's evil_grunger@hotmail.com - can you email me instead?

Posted: Mon Apr 03, 2006 2:36 pm
by Nik
Ok I will do so in an instant,

Code: Select all

A.s="bobobaba"
B.s="jimiyjo"
C.s=A+B
Ola.f=1.4
Hola.f=1.6
Teta.f=Ola.f+Hola.f

Generates an Invalid Memory Access on compile time

Posted: Mon Apr 03, 2006 3:23 pm
by Killswitch
I've fixed the bug that Nik found. I've just gotta wait for him to upload it to his sever before I can provide you all with a download :).

Posted: Mon Apr 03, 2006 3:36 pm
by Nik

Posted: Mon Apr 03, 2006 4:20 pm
by Killswitch
^^ (That's the link for the updated Compiler - I've changed the download link at the top as well).

Posted: Mon Apr 03, 2006 4:24 pm
by Inf0Byt3
Cool! Thanks :D.