version 1.2, 1997/08/25 16:17:08 |
version 1.3, 1999/04/18 17:06:29 |
|
|
cc -O -c lex.c |
cc -O -c lex.c |
cc -O ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm |
cc -O ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm |
|
|
This produces an executable a.out; you will eventually |
This produces an executable a.out; you will eventually want to |
want to move this to some place like /usr/bin/awk. |
move this to some place like /usr/bin/awk. |
|
|
If your system is does not have yacc or bison (the GNU |
If your system is does not have yacc or bison (the GNU |
equivalent), you must compile the pieces manually. We have |
equivalent), you must compile the pieces manually. We have |
included yacc output in ytab.c and ytab.h, and backup copies in |
included yacc output in ytab.c and ytab.h, and backup copies in |
case you overwrite them. |
case you overwrite them. We have also included a copy of |
|
proctab.c so you do not need to run maketab. |
|
|
NOTE: This version uses ANSI C, as you should also. We have |
NOTE: This version uses ANSI C, as you should also. We have |
compiled this without any changes using gcc -Wall and/or local C |
compiled this without any changes using gcc -Wall and/or local C |
|
|
may raise some new complaint; reports of difficulties are |
may raise some new complaint; reports of difficulties are |
welcome. |
welcome. |
|
|
This also compiles with Visual C++ 4.1 on Windows 95 and |
This also compiles with Visual C++ on Windows 95 and Windows NT, |
presumably Windows NT, *if* you provide versions of popen and |
*if* you provide versions of popen and pclose. The file |
pclose. The file missing95.c contains do-nothing versions that |
missing95.c contains versions that can be used to get started |
can be used to get started with. It is too much trouble to |
with, though the underlying support has mysterious properties, |
figure out how to make these work for real. |
the symptom of which can be truncated pipe output. Beware. |
|
|
|
This is also said to compile on Macintosh systems, using the |
|
file "buildmac" provided by Dan Allen (danallen@microsoft.com), |
|
to whom many thanks. Dan also provided buildwin.bat, a simple |
|
script for compiling on NT if you prefer. |
|
|
The version of malloc that comes with some systems is sometimes |
The version of malloc that comes with some systems is sometimes |
astonishly slow. If awk seems slow, you might try fixing that. |
astonishly slow. If awk seems slow, you might try fixing that. |
|
|