From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Interested about number crunching in Ada
Date: Fri, 17 Aug 2007 16:35:38 +0200
Date: 2007-08-17T16:35:38+02:00 [thread overview]
Message-ID: <46c5b20d$1_4@news.bluewin.ch> (raw)
In-Reply-To: <1187344327.459317.18070@q4g2000prc.googlegroups.com>
Jerry:
> Anyway, the Pascal-to-Ada converter p2ada is said to have successfully
> converted the entire Numerical Recipes into Ada.
That's right, and the "formal" translation itself is pretty easy, there is
indeed even a batch file that does the job automatically. After comes the
manual rework 8-{...
I just updated the file newp2ada.txt in newp2ada.zip by adding
a walk-through that was missing (after downloading nrpas13.zip, cf.
http://www.google.com/search?q=nrpas13.zip ):
To translate the Numerical Recipes in Pascal, you need to:
- unzip nrpas13.zip somewhere
- copy newp2ada\goodies\tr_nrec.bat at the same place
- run tr_nrec.bat
- everything is translated in the Ada subdirectory;
one .adb file per driver/demo, one .adb file with
all recipes
- you need manual rework to make the recipes compile,
e.g., numerical conversions are explicit in Ada (the
compiler will tell you where you need to add explicit
conversions); making a well-modularised,
consistent set of packages of the whole recipes,
with unconstrained array types instead of the dozen of
fixed-size Pascal array types, Ada's complex numbers and
other nice features would be an interesting goal but a long work...
______________________________________________________________
Gautier -- http://www.mysunrise.ch/users/gdm/index.htm
Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm
NB: For a direct answer, e-mail address on the Web site!
prev parent reply other threads:[~2007-08-17 14:35 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-16 3:42 Interested about number crunching in Ada holst
2007-08-16 6:43 ` Nasser Abbasi
2007-08-16 9:16 ` Colin Paul Gloster
2007-08-17 9:43 ` Jerry
2007-08-16 11:17 ` anon
2007-08-16 18:59 ` Gautier
2007-08-17 4:44 ` anon
2007-08-17 7:24 ` Gautier
2007-08-17 23:42 ` anon
2007-08-18 11:22 ` Gautier
2007-08-18 11:40 ` Markus E.L. 2
2007-08-20 22:31 ` To Markus anon
2007-08-17 8:23 ` Interested about number crunching in Ada Markus E.L. 2
2007-08-17 9:01 ` Stuart
2007-08-17 9:39 ` Martin Krischik
2007-08-18 0:47 ` anon
2007-08-18 11:58 ` Markus E.L. 2
2007-08-19 6:43 ` anon
2007-08-19 16:14 ` Markus E.L. 2
2007-08-19 16:23 ` Markus E.L. 2
2007-08-20 8:46 ` Stuart
2007-08-21 1:06 ` Randy Brukardt
2007-08-21 1:28 ` Gary Scott
2007-08-21 8:14 ` History of Ada - was " Stuart
2007-08-22 7:13 ` anon
2007-08-23 11:24 ` Stuart
2007-08-23 21:51 ` Gautier
2007-08-24 13:04 ` History of Ada - and about the NYU DOS version anon
2007-08-24 16:25 ` Georg Bauhaus
2007-08-25 11:49 ` History of Ada - to answer your question anon
2007-11-02 13:51 ` History of Ada - and about the NYU DOS version adaworks
2007-08-17 1:24 ` Interested about number crunching in Ada Gary Scott
2007-08-16 22:55 ` Jerry
2007-08-17 9:21 ` Nasser Abbasi
2007-08-17 9:52 ` Jerry
2007-08-17 14:35 ` Gautier [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox