Related articles |
---|
Re: [Rock Brentwood] Fortran to C/C++ translation: a running example. ianlancetaylor@gmail.com (Ian Lance Taylor) (2022-05-16) |
Re: [Rock Brentwood] Fortran to C/C++ translation: a running example. lydiamariewilliamson@gmail.com (Lydia Marie Williamson) (2022-05-20) |
From: | Ian Lance Taylor <ianlancetaylor@gmail.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 16 May 2022 15:38:29 -0700 |
Organization: | Compilers Central |
References: | <m3ilq59m3r.fsf@pepe.airs.com> |
Injection-Info: | gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="39331"; mail-complaints-to="abuse@iecc.com" |
Keywords: | translator, history |
Posted-Date: | 16 May 2022 19:08:03 EDT |
In-Reply-To: | <m3ilq59m3r.fsf@pepe.airs.com> |
> From: Rock Brentwood <rockbrentwood@gmail.com>
> The classic text-based computer game Zork / dungeon was originally devised on
> MIT computers in a LISP-offshoot (MDL), and translated to Fortran 77 by an
> "Anonymous" author. Some time later an enterprising soul converted a version
> of the Fortran edition of Zork into C ... pre-ANSI C ... with the aid of an
> earlier version of "f2c", but left no detailed paper trail behind on the
> actual translation process and stages.
Just FYI I was the enterprising soul who translated the code from Fortran
to C. I still have at least some of the intermediate files. Happy to
answer any questions.
That said, most of the work was manually rewriting the f2c output into
something more C like. For me this wasn't an exercise in translation
between languages, it was an exercise in making a version of Zork more
available. So I probably don't have anything useful to add that is
relevant to the compilers list.
In particular I changed the format of the data file. I wrote a translation
program between the old format, a new format, and a text format. The text
format let me make minor changes to things like the leaflet text.
Ian
Return to the
comp.compilers page.
Search the
comp.compilers archives again.