QBasic for PropGCC ?
Rayman
Posts: 14,826
This might be an interesting way to do Basic with GCC...
Was just looking at this QBasic fan site:
http://www.qb64.net/forum/index.php?topic=568.0
Their QBasic "compiler" appears to actually just convert QBasic source code into C++.
It then uses GCC to compile and run that C++ code.
I'm not 100% sure it's worth reviving QBasic for Propeller,
but it looks like one could do it if they wanted to...
Was just looking at this QBasic fan site:
http://www.qb64.net/forum/index.php?topic=568.0
Their QBasic "compiler" appears to actually just convert QBasic source code into C++.
It then uses GCC to compile and run that C++ code.
I'm not 100% sure it's worth reviving QBasic for Propeller,
but it looks like one could do it if they wanted to...
Comments
If this works you might need to get Humanoido to add this to the language list *grin*.
I used to program in Ratfor, and I'm not sure if there's a Ratfor-to-C translator, but it should be possible to translate Ratfor to Fortran, and then Fortran to C. Using a dual-conversion approach you might be able to convert almost any language to C/C++ by first converting to Pascal, Fortran, COBOL, etc., and then converting to C/C++.
What? No pocket protector?
LOL
OBC
GNU Fortran actually works (you just have to unpack the sources to the PropGCC tree, and I think add one minor tweak to a configuration file, and then rebuild PropGCC). I have successfully run a Fortran "hello world". The runtime libraries are enormous, though, so the only memory models that work are XMM and XMMC. It's not very practical at the moment :-(.