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:

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

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?
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).

Site Admin
Posts: 623
Joined: Sat Jan 16, 2010 11:16 pm

Return to eC Language

Who is online

Users browsing this forum: No registered users and 0 guests