|Looking for awk compiler firstname.lastname@example.org (Andrew Shao-Chun Huang) (1993-03-16)|
|SUMMARY: Looking for awk compiler email@example.com (Andrew Shao-Chun Huang) (1993-03-25)|
|Re: Looking for awk compiler firstname.lastname@example.org (1993-03-26)|
|Re: SUMMARY: Looking for awk compiler email@example.com (1993-03-26)|
|From:||Andrew Shao-Chun Huang <firstname.lastname@example.org>|
|Date:||Thu, 25 Mar 1993 05:16:48 GMT|
A while ago I asked:
> Does anyone know of a compiler for the awk language? ...
I've since received numerous responses. Instead of listing all of them,
I'll just summarize:
o The AT&T Toolchest includes an awk to C translator called awkcc.
When an awk script is translated to C and then compiled with cc,
speedup of 2-6 can be obtained. Price for the source code of the
Toolchest is $175.
o Mawk, by Mike Brennon, is an implementation of the 'new awk' language
that is 2-5 times as fast as standard awk. Even though it is an
interpreter, mawk first converts a program into an intermediate form
before interpreting it. It can be ftp'd from oxy.edu:public/mawk.
o MKS toolkit comes with an AWK to C translator.
o Perl (Practical Extraction and Report Language) comes with an awk to
perl translator. The perl package can be ftp'd from prep.ai.mit.edu
o One person also suggested rewriting the script in Icon language.
This language is supposedly good for text processing, AI, symbolic
math, prototyping, etc. Icon can be ftp'd from cs.arizona.edu.
My goal was to speedup my awk script without having to learn another
language. So icon was out. The awk to perl translator was not entirely
successful at translating my script. I would have had to learn perl to
figure out what went wrong. So in the end, I went with mawk. My script
ran 2.5 times as fast with mawk as it did with gawk.
Thanks to the following people for their responses:
Tim Channon, Ian Searle, David Whitten, Joshua Levy, Kurt Bischoff,
Rayaz Jagani, Demitry Kohmanyuk, Mark Streich, Mauricio Breternitz Jr,
Jeremy Fitzhardinge, Amnon Cohen, Norman Ramsey, Jeff Fried, Scott
Andrew Huang email@example.com
Electrical & Computer Engineering (412) 268-7101
Carnegie Mellon University
Return to the
Search the comp.compilers archives again.