Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.unix.programmer Subject: Re: Program Preprocessor? Message-ID: Date: 7 Mar 91 00:55:38 GMT References: <13716@medusa.cs.purdue.edu> Organization: University of California, Irvine, USA. Lines: 18 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: wangjw@cs.purdue.EDU's message of 6 Mar 91 20:52:54 GMT In article <13716@medusa.cs.purdue.edu> wangjw@cs.purdue.EDU (Jingwen Wang) writes: I am going to design a program preprocessor for software transplant. I need to substitute some of the Fortran calls for calls on the new machine. I don't know which is the most efficient way to do this. I have two options: design the preprocessor in C or in awk language. Can someone tell me which is the best way to do this simple substitution task? Or has anyone already done this similar job? If it really only is simple substitution you are probably better off with a sed script than with either awk or C. Carl Edman "We hold that what one man cannot morally do, a million men cannot morally do, and government, representing many millions of men, cannot do." -- Auberon Herbert Send mail to Carl Edman