[Top][All Lists]

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

Re: octave to c compiler?

From: Jens Ruecknagel
Subject: Re: octave to c compiler?
Date: Mon, 5 Dec 2005 01:48:34 -0600
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051017)

I wrote an octave to c++ compiler prototype.

There are two approaches:

1) just replace the octave functions by the corresponding c++ functions,
and use the dynamic typing class Octave_value. This approach is simple -
you just need to take the time to go through all the Octave functions.

2) Try to find out the data types, which the programmer of your .m-file
meant to use. This can be achieved using type estimation - but this is a
bit more complicated.

I wrote 2 student papers about these issues:

I never tried out the stratego octave translator: It seems to be pretty
good. It seems to do some type estimation - ...
The paper can be downloaded here:

Maybe I'll reed it tonight. :-)


Ze Ji schrieb:
> Hi, does anyone know anything about the implementation of convert octave
> script to c / c++ code?
> Or, simply, is it possible to call any octave function from c/c++? I
> mean not just simply call the function with the string command...
> I have been searching for such thing for a while, finally found
> something below, that is a wonderful tool, and cool web style.
> How complete or reliable this one has achieved (I am wondering because
> the release version is just 0.1. )
> Is there any alternative option, if you know.
> Thanks
> Ze

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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