[Top][All Lists]

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

Re: c2m

From: Daniel Heiserer
Subject: Re: c2m
Date: Fri, 04 Jun 1999 16:40:02 +0200

address@hidden wrote:
> On  2-Jun-1999, Daniel Heiserer <address@hidden> wrote:
> | does anybody have a converter translating c-code to m-files.
> |
> | I don't expect that the code works perfect, but
> | if I have to translate a c-routine into
> | octave it would help (a few thousand lines).
> |
> | Preprocessor things like
> | #ifdef VAR_1
> |
> | should be translated like
> |
> | if exist()
> |
> | If nobody have something I will code my own ....
> If you already have C, why not just wrap it up for dynamic linking
> instead of translating it?

Sure I thought of that.
Multiple reasons for me trying the other way:
1) The code should use feval .... I don't know how to do this in an
#.oct file
2) This is an optimization code which "sits" above other m-files and
there is  
probably no speed benefit using C.
3) I might try to change some things. m-files are easier for that.
4) This code uses #ifdef and other preprocessing stuff extremely often.
Once it is compiled all this features are gone. I don't want to loose
The code has a feature to optimize himself. I am not sure right now how
to handle that.

Bye daniel
Mit freundlichen Gruessen
                                 Daniel Heiserer
Dipl.-Phys. Daniel Heiserer, BMW AG, Knorrstrasse 147, 80788 Muenchen
Abteilung EK-20
Tel.: 089-382-21187, Fax.: 089-382-42820

Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see
Instructions for unsubscribing:

reply via email to

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