bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DOS (Windows 98) build of bison 1.28


From: jesse mckeown
Subject: DOS (Windows 98) build of bison 1.28
Date: Sun, 18 Nov 2001 16:07:38 -0500

As per request in bison-1.28/readme, having more or less successfully built bison with djgpp in windows 98, I am reporting same. Used relatively mindless makefile:

========================================================================
ALL = allocate.o closure.o conflicts.o derives.o files.o getargs.o getopt.o getopt1.o gram.o lalr.o lex.o lr0.o main.o nullable.o output.o print.o reader.o reduce.o symtab.o warshall.o

bison: $(ALL)
        gcc $(ALL) -o bison.exe

.c.s:
        gcc -S -o $*.s $<

.s.o:
        as -c -o $*.o $<

.c.o:
        gcc -c -o $*.o $<
========================================================================
Required tweaking: even after adjusting files.c the files bison.s1 and bison.hairy had to be moved to some picky directory, and bison.s1 had to be renamed bison.sim (short for "simple"). I don't know why this is; appart from files.c no source file refers to these except by the macros [X]FILE[1].
the form PARAMS ((arglist)) does not seem to be intrinsic to djgpp, so

#define PARAMS(X) X

was added to all source files using it. Bison seemed to work thereafter. Tested with the YACC C specification by Jeff Lee/Jutta Degener from http://kbs.cs.tu-berlin.de/~jutta/c/ANSI-C-grammar-y.html
bison reported one shift-reduce conflict.

Many thanks, see you later.

¬óJesse McKeown

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




reply via email to

[Prev in Thread] Current Thread [Next in Thread]