Awatmath.1839
net.bugs.4bsd
utcsrgv!utzoo!decvax!watmath!dmmartindale
Tue Feb 23 15:15:20 1982
Making yacc tables shared in ccom
The file /usr/src/cmd/pcc/:yyfix is supposed to write a given set of
yacc's tables into the file rodata.c, replacing them with external
declarations in y.tab.c.  In fact, it writes only the last of them
into rodata.c, and reads the rest back into y.tab.c.  Replace :yyfix
with the following, recompile, and about 4Kb of tables become shared.

>rodata.c
for i in $*
do ed - y.tab.c <<! A+1, \1 ! DONE A+1,'BW Q W /^\(.*\)$I[ .-1KA BD /}/KB $I ]*\[]/S//EXTERN </PRE []/ $I[];\\ RODATA.C AR RODATA.C
>
<HR>
This Usenet Oldnews Archive
article may be copied and distributed freely, provided:
<P>
1. There is no money collected for the text(s) of the articles.
<BR>
2. The following notice remains appended to each copy:
<P>
<EM>The Usenet Oldnews Archive: Compilation Copyright&copy 1981, 1996
<BR> Bruce Jones, Henry Spencer, David Wiseman.</EM>
<P>
<HR>
Goto <A HREF="82.02.26_cbosgd.2075_net.bugs.4bsd.html">NEXT</A> article in NET.bugs.4bsd Newsgroup
<BR>Return to <A HREF="NET.bugs.4bsd-index.html">NET.bugs.4bsd index</A>
<BR>Return to the
       <A HREF="../index.html">Usenet Oldnews Archive index</A>
</HTML>

-----------------------------------------------------------------
gopher://quux.org/ conversion by John Goerzen <[email protected]>
of http://communication.ucsd.edu/A-News/


This Usenet Oldnews Archive
article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.