Deleted Added
full compact
README (92422) README (107806)
1/****************************************************************
2Copyright (C) Lucent Technologies 1997
3All Rights Reserved
4
5Permission to use, copy, modify, and distribute this software and
6its documentation for any purpose and without fee is hereby
7granted, provided that the above copyright notice appear in all
8copies and that both that the copyright notice and this

--- 26 unchanged lines hidden (view full) ---

35 make
36which should produce a sequence of messages roughly like this:
37
38 yacc -d awkgram.y
39
40conflicts: 43 shift/reduce, 85 reduce/reduce
41 mv y.tab.c ytab.c
42 mv y.tab.h ytab.h
1/****************************************************************
2Copyright (C) Lucent Technologies 1997
3All Rights Reserved
4
5Permission to use, copy, modify, and distribute this software and
6its documentation for any purpose and without fee is hereby
7granted, provided that the above copyright notice appear in all
8copies and that both that the copyright notice and this

--- 26 unchanged lines hidden (view full) ---

35 make
36which should produce a sequence of messages roughly like this:
37
38 yacc -d awkgram.y
39
40conflicts: 43 shift/reduce, 85 reduce/reduce
41 mv y.tab.c ytab.c
42 mv y.tab.h ytab.h
43 cc -O -c ytab.c
44 cc -O -c b.c
45 cc -O -c main.c
46 cc -O -c parse.c
47 cc -O maketab.c -o maketab
43 cc -c ytab.c
44 cc -c b.c
45 cc -c main.c
46 cc -c parse.c
47 cc maketab.c -o maketab
48 ./maketab >proctab.c
48 ./maketab >proctab.c
49 cc -O -c proctab.c
50 cc -O -c tran.c
51 cc -O -c lib.c
52 cc -O -c run.c
53 cc -O -c lex.c
54 cc -O ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm
49 cc -c proctab.c
50 cc -c tran.c
51 cc -c lib.c
52 cc -c run.c
53 cc -c lex.c
54 cc ytab.o b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o -lm
55
56This produces an executable a.out; you will eventually want to
57move this to some place like /usr/bin/awk.
58
59If your system is does not have yacc or bison (the GNU
60equivalent), you must compile the pieces manually. We have
61included yacc output in ytab.c and ytab.h, and backup copies in
62case you overwrite them. We have also included a copy of

--- 7 unchanged lines hidden (view full) ---

70
71This also compiles with Visual C++ on all flavors of Windows,
72*if* you provide versions of popen and pclose. The file
73missing95.c contains versions that can be used to get started
74with, though the underlying support has mysterious properties,
75the symptom of which can be truncated pipe output. Beware.
76The file makefile.win gives hints on how to proceed.
77
55
56This produces an executable a.out; you will eventually want to
57move this to some place like /usr/bin/awk.
58
59If your system is does not have yacc or bison (the GNU
60equivalent), you must compile the pieces manually. We have
61included yacc output in ytab.c and ytab.h, and backup copies in
62case you overwrite them. We have also included a copy of

--- 7 unchanged lines hidden (view full) ---

70
71This also compiles with Visual C++ on all flavors of Windows,
72*if* you provide versions of popen and pclose. The file
73missing95.c contains versions that can be used to get started
74with, though the underlying support has mysterious properties,
75the symptom of which can be truncated pipe output. Beware.
76The file makefile.win gives hints on how to proceed.
77
78This is also said to compile on Macintosh systems, using the
78This compiles without change on Macintosh OS X using gcc and
79the standard developer tools.
80
81This is also said to compile on Macintosh OS 9 systems, using the
79file "buildmac" provided by Dan Allen (danallen@microsoft.com),
80to whom many thanks.
81
82The version of malloc that comes with some systems is sometimes
83astonishly slow. If awk seems slow, you might try fixing that.
82file "buildmac" provided by Dan Allen (danallen@microsoft.com),
83to whom many thanks.
84
85The version of malloc that comes with some systems is sometimes
86astonishly slow. If awk seems slow, you might try fixing that.
87More generally, turning on optimization can significantly improve
88awk's speed, perhaps by 1/3 for highest levels.