1. Compiler???

What is the deal with the messages a while ago about making a compiler
for Euphoria? Didn't it have one bundled with it? (Bind.) Just
wondering.

Neil Harvey

new topic     » topic index » view message » categorize

2. Re: Compiler???

Neil Harvey wrote:


> What is the deal with the messages a while ago
> about making a compiler for Euphoria? Didn't it
> have one bundled with it? (Bind.) Just wondering.

Euphoria is an interpreted language. Bind gathers your source all include
files, and pastes them onto the end of a copy of the interpreter. So the
bound file is still the interpreter, with your source code file and includes
attached to the end.  When you run that file, the interpreter notices that
there's a file attached on the end, and executes it.

But it's still an interpreter.

Robert's compiler (some of us prefer the term "translator") takes the
Euphoria source code and include files, and generates C source code. You can
then take that source code and feed it to your favorite C compiler and
generate an executable file. So it's really and truly a compiled program.

By removing the interpreter layer from the code, Robert has been able to
speed up the resulting executable considerably. On the down side, there's no
built-in trace routine, and most of the error checking doesn't exist/

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu