help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there a command that shows the C-code the interpreter creates?


From: Jordi Gutiérrez Hermoso
Subject: Re: Is there a command that shows the C-code the interpreter creates?
Date: Tue, 16 Apr 2019 11:09:11 -0400

On Mon, 2019-04-15 at 17:27 -0500, GoSim wrote:
> A command that shows the C-code the interpreter creates, does such a thing
> exist?

I don't think it exists, but I'm surprised you're expecting it to
already exist. Is it because you think Octave was implemented in LLVM?
Octave is implemented in flex and bison. Others have pointed out where
those source files are in our tree.

Are you perhaps looking for an example of the bison and flex output?

Making Octave compile m-files into any other language is a huge
undertaking.

We did have someone a long time ago start to do some basic porting of
Octave to start using LLVM so that the IR that you might want could
exist, but the porting effort was using the unstable C++ LLVM API
which nobody could keep up to date, so that effort is mostly dead.
Reviving the LLVM bindings, or using any other JIT compiler like
libgccjit, would be a huge and significant contribution.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]