MathGroup Archive 2001

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: .m file to C or Fortran source code

  • To: mathgroup at
  • Subject: [mg29661] Re: .m file to C or Fortran source code
  • From: "Ira D. Baxter" <idbaxter at>
  • Date: Mon, 2 Jul 2001 02:20:22 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

In general, this is pretty hard to do since Mathematica files contain operators
that essentially don't translate (such as "transform") to C or Fortran.
I think Wolfram offers something calle "MathCode" that does something like
We recently added Mathematica to the set of langauges that the DMS
Software Reengineering Toolkit can process (DMS already handles C and
Fortran).  This means DMS can parse .m files, and carry out arbitrary,
customized transformations.   (Mathematica itself can do transformations on Mathematica
structures; DMS can do transformations on Mathematica structures and on other
languages too).   One could use this to construct custom translations
of .m files into C or Fortran.   Not easy to do, but if fidelity of
your resulting code to the mathematica sources is important, this might
be the way to go.
Ira D. Baxter, Ph.D. CTO Semantic Designs, Inc.
"fang" <fang at> wrote in message
news:9gup1g$o0m$1 at
> Hello everyone,
> Our theoreticians wrote their formulas and then programmed them in
> Mathematica to do quick tests.
> We would like to convert the Mathematica's .m files into C or Fortran
> source codes so we can implement them in our experimental
> data-acquisition and analysis applications.
> Does such a converter exist?
> Thanks in advance.
> Fang

  • Prev by Date: Re: Two CPU AMD PC and Mathematica
  • Next by Date: Transforming matrices
  • Previous by thread: Re: Two CPU AMD PC and Mathematica
  • Next by thread: Transforming matrices