Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: .m file to C or Fortran source code

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

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
this.
 
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.
 
See http://www.semdesigns.com/Products/DMS/DMSToolkit.html.
 
--
Ira D. Baxter, Ph.D. CTO Semantic Designs, Inc.
http://www.semdesigns.com
 
 
"fang" <fang at squid.jpl.nasa.gov> wrote in message
news:9gup1g$o0m$1 at smc.vnet.net...
> 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