Shop OBEX P1 Docs P2 Docs Learn Events
Any LLVM-based compilers out there? — Parallax Forums

Any LLVM-based compilers out there?

plainsteveplainsteve Posts: 33
edited 2012-01-02 05:14 in Propeller 1
I'm guessing the Parallax GCC effort is based on actual GCC and not llvm-gcc. So, is any adventurous person out there working on an actual LLVM-based compiler (any language, not just C/C++) for the Propeller?

Please and thank you.

Comments

  • pedwardpedward Posts: 1,642
    edited 2011-12-29 13:47
    Hmm, I was thinking LCC, which Catalina is based on, haven't heard of LLVM. Just hit Google and it looks like LLVM is a retargetable compiler toolchain, like LCC, but hasn't been around as long.
  • LeonLeon Posts: 7,620
    edited 2011-12-29 14:03
    Several companies use it, including some quite prestigious ones:

    http://llvm.org/Users.html

    XMOS uses it for their XC and C compilers for their multi-core and multi-processor architecture. Given how successful it has been for XMOS, it would be a good choice for someone developing another compiler for the somewhat similar Propeller.
  • dgatelydgately Posts: 1,633
    edited 2012-01-01 02:00
    Leon wrote: »
    Several companies use it, including some quite prestigious ones.

    Apple does :-)

    dgately
  • Heater.Heater. Posts: 21,230
    edited 2012-01-01 04:06
    PlainSteve,

    Any particular reason why you would want one?

    I believe LLVM was considered for the Prop C compiler effort but Parallax seems to have harnessed some very good GCC talent and propgcc works very well.
  • plainsteveplainsteve Posts: 33
    edited 2012-01-01 23:09
    Heater. said:
    Any particular reason why you would want one?

    Nah. Just curious. However, I would be interested to know specifics of why GCC was chosen over Clang/LLVM. It doesn't really matter to me in the end, though; I have zero use for C/C++ with the Propeller.
  • Heater.Heater. Posts: 21,230
    edited 2012-01-02 02:06
    I suspect it's a case of having GCC expertise available. Reading around I see that many compiler gurus would recommend LLVM over GCC supposedly because it's easier to retarget.
  • ersmithersmith Posts: 6,144
    edited 2012-01-02 05:14
    plainsteve wrote: »
    Nah. Just curious. However, I would be interested to know specifics of why GCC was chosen over Clang/LLVM. It doesn't really matter to me in the end, though; I have zero use for C/C++ with the Propeller.

    GCC is very widely available and used in the embedded software industry, and is considered a mature and familiar product. Clang/LLVM is a relatively new solution and not so familiar to developers. That doesn't say much about their relative merits, of course, but it does make a GCC port something that managers look for when selecting a processor for a project.

    Eric
Sign In or Register to comment.