BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / gawk-2.15.2 / README.rs6000
CommitLineData
bc9c0cf3
C
1Date: Fri, 26 Apr 1991 18:01:04 -0300
2From: mjlx@eagle.cnsf.cornell.edu (Mike Lijewski)
3To: arnold@audiofax.com
4Cc: david@cs.dal.ca
5Subject: testing 2.12 on a machine with unsigned chars
6
7I chose to use the alloca which you supply. The RS/6000 has a builtin
8alloca which is accessible using a `#pragma alloca', but I chose not
9to use it. Initially, I tried to use it by conditionally compiling it,
10similar to the way alloca.h is included on sparcs. But this has
11some problems. Firstly, the RS/6000 compiler complains about the
12placement of the #pragma, something to the intent that the pragma must
13precede all C code. This would be easy enough to fix by conditionally
14including the #pragma elsewhere in the relevant files. A more
15difficult problem is that the awk.tab.c generated by bison uses
16alloca. To fix this the right way, bison would have to be modified to
17output the appropriate conditionally compilable code as it does now
18for sparcs. If you think it is worth while to use the builtin alloca,
19I would be happy to get it working, except for the bison problem, and
20send you the diffs. The FSF might also be interested in "fixing"
21bison to use the builtin alloca on the RS/6000.