Shop OBEX P1 Docs P2 Docs Learn Events
will PropGCC support other languages besides C? — Parallax Forums

will PropGCC support other languages besides C?

msrobotsmsrobots Posts: 3,709
edited 2012-06-25 15:02 in Propeller 1
As far as my understanding of the GNU Compiler Collection (GCC) goes, it is able to compile besides C and C++ other languages like Objective-C, Fortran, Java, Ada, GO as Standard. There are other FrontEnds available (Modula, PL/1 etc.).

Is this or will this be possible with PropGCC as BackEnd?

Any way to produce a Spin-FrontEnd to use GCC to compile SPIN?

Enjoy!

Mike

Comments

  • jazzedjazzed Posts: 11,803
    edited 2012-06-22 18:17
    msrobots wrote: »
    As far as my understanding of the GNU Compiler Collection (GCC) goes, it is able to compile besides C and C++ other languages like Objective-C, Fortran, Java, Ada, GO as Standard. There are other FrontEnds available (Modula, PL/1 etc.).

    Is this or will this be possible with PropGCC as BackEnd?

    Any way to produce a Spin-FrontEnd to use GCC to compile SPIN?

    These things are possible, but there are no commitments to anything except C/C++. Community efforts would be welcomed of course.

    Thanks,
    --Steve
  • doggiedocdoggiedoc Posts: 2,245
    edited 2012-06-23 13:42
    msrobots wrote: »
    ... other languages like Objective-C...
    Lately I've been spending a lot of time in Xcode and have had a similar thought. Wouldn't it be nice to have some Objective-C frameworks for the Propeller. Alas, I don't have the knowledge or skills to make it happen.
  • ersmithersmith Posts: 6,097
    edited 2012-06-25 09:24
    msrobots wrote: »
    As far as my understanding of the GNU Compiler Collection (GCC) goes, it is able to compile besides C and C++ other languages like Objective-C, Fortran, Java, Ada, GO as Standard. There are other FrontEnds available (Modula, PL/1 etc.).

    Is this or will this be possible with PropGCC as BackEnd?

    Any way to produce a Spin-FrontEnd to use GCC to compile SPIN?

    Mike

    The PropGCC back end should be able to accomodate any of the languages; we've only had time to test it with C and C++. As Steve mentioned, community input to support additional languages would be very welcome (it would be cool to have a Fortran compiler for the Propeller :-)).

    As for a Spin front end, such a thing would certainly be possible, but it's a question of time and resources. The closest thing at the present time is the spin2cpp converter (http://code.google.com/p/spin2cpp) which can convert .spin files to C++; using this and some makefile rules it's pretty easy to compile Spin to LMM or XMM PASM, as long as you have some command line experience.

    Eric
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2012-06-25 09:43
    ersmith wrote:
    ... it would be cool to have a Fortran compiler for the Propeller :-)
    Hot diggity! I'll get to work right away on a punch-card reader. I think the TSL1401 will be up to reading the holes as the cards glide past.

    -Phil
  • Heater.Heater. Posts: 21,230
    edited 2012-06-25 15:02
    Wait up a minute. You can already run FORTRAN under Zog on the Propeller compiled with zpu-gcc.
Sign In or Register to comment.