Ecere SDK/eC Forums • View topic - Compiler Project: LLVM vs other Backends




Ecere SDK/eC Forums

Ecere Developers Community

Compiler Project: LLVM vs other Backends

General help with the eC language.

Compiler Project: LLVM vs other Backends

Postby cloutiy » Sat Jul 15, 2017 11:55 am

I see on the GSoC page some projects for the compiler portion.

One of them being integrating with a LLVM backend.

I'd like to offer another suggestion in the similar vein:

https://c9x.me/compile/

Another interesting language which compiles down to C, like eC is Nim:

https://nim-lang.org/

Nim's syntax gets a bit more inspiration from the Wirth family of languages than C's (Pascal, Modula, Oberon)

Something I find interesting about this language is that it allows creating AST nodes for the language inside the language itself. As a result one could create a new language, parse it into the implementation language's AST (Nim in this case) and let the compiler do the rest of the work from there.

This may be a non-goal, or perhaps one for the far future, but is there any interest in type inference? Is that something that would even be possible?
cloutiy
 
Posts: 18
Joined: Wed Jul 20, 2016 5:07 pm

Re: Compiler Project: LLVM vs other Backends

Postby jerome » Sat Jul 15, 2017 12:23 pm

I think some of that may be possible at the moment with libec.
Running the newly parsed code is also a goal with either libTCC or the LLVM module that does this (just in time compiling).

-Jerome
jerome
Site Admin
 
Posts: 622
Joined: Sat Jan 16, 2010 11:16 pm


Return to eC Language

Who is online

Users browsing this forum: No registered users and 1 guest

cron