Delete 689 undead files.
These files "magically reappeared" after the conversion from CVS to Mercurial. The old CVS repository deleted these files but did not record *when* it deleted these files. The conversion resurrected these files because they have no history of deletion. These files were probably deleted before year 1995. The CVS repository begins to record deletions around 1995. These files may still appear in older revisions of this Mercurial repository, when they should already be deleted. There is no way to fix this, because the CVS repository provides no dates of deletion. See http://sourceforge.net/mailarchive/message.php?msg_id=29823032
This commit is contained in:
@@ -1,67 +0,0 @@
|
||||
# $Header$
|
||||
EMHOME = ../../..
|
||||
h = $(EMHOME)/h
|
||||
LIBOBJ = $(EMHOME)/modules/lib/libobject.a
|
||||
CDIR = $(EMHOME)/mach/proto/as
|
||||
CPP = $(EMHOME)/lib/cpp
|
||||
DEF =
|
||||
|
||||
FFLAG =
|
||||
INCL = -I. -I$h $(DEF)
|
||||
CFLAGS = $(FFLAG) -O $(INCL)
|
||||
YFLAGS = -d
|
||||
LDFLAGS = $(FFLAG)
|
||||
|
||||
CSRC = $(CDIR)/comm3.c $(CDIR)/comm4.c $(CDIR)/comm5.c \
|
||||
$(CDIR)/comm6.c $(CDIR)/comm7.c $(CDIR)/comm8.c
|
||||
COBJ = comm3.o comm4.o comm5.o \
|
||||
comm6.o comm7.o comm8.o
|
||||
MACH = mach0.c mach1.c mach2.c mach3.c mach4.c mach5.c
|
||||
COMM = $(CDIR)/comm0.h $(CDIR)/comm1.h $(CDIR)/comm2.y $(CSRC)
|
||||
|
||||
all: as
|
||||
|
||||
install:all
|
||||
../../install as
|
||||
|
||||
cmp:
|
||||
-../../compare as
|
||||
|
||||
clean:
|
||||
rm -f *.o as as.[cy] y.tab.h
|
||||
|
||||
pr: $(MACH)
|
||||
@pr -n $(MACH)
|
||||
|
||||
opr:
|
||||
make pr | opr
|
||||
as: $(COBJ) as.o
|
||||
$(CC) $(LDFLAGS) $(COBJ) as.o $(LIBOBJ) -o as
|
||||
|
||||
as.y: $(CDIR)/comm2.y
|
||||
$(CPP) -P -I. -I$h $(DEF) $(CDIR)/comm2.y >as.y
|
||||
-@if test -f Expect ; then cat Expect ; else echo "expect 1 shift/reduce conflict"; fi
|
||||
|
||||
lint: $(CSRC) as.c
|
||||
lint $(INCL) $(CSRC) as.c
|
||||
|
||||
y.tab.h: as.c
|
||||
$(COBJ): y.tab.h
|
||||
$(COBJ) as.y: $(CDIR)/comm0.h mach0.c
|
||||
$(COBJ) as.y: $(CDIR)/comm1.h mach1.c
|
||||
as.y: mach2.c
|
||||
comm3.o: mach3.c
|
||||
as.y: mach4.c
|
||||
comm8.o: mach5.c
|
||||
comm3.o: $(CDIR)/comm3.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/comm3.c
|
||||
comm4.o: $(CDIR)/comm4.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/comm4.c
|
||||
comm5.o: $(CDIR)/comm5.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/comm5.c
|
||||
comm6.o: $(CDIR)/comm6.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/comm6.c
|
||||
comm7.o: $(CDIR)/comm7.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/comm7.c
|
||||
comm8.o: $(CDIR)/comm8.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/comm8.c
|
||||
@@ -1,6 +0,0 @@
|
||||
/* $Header$ */
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
/* #define NOFLOAT /* define when not using fpp simulator */
|
||||
@@ -1,22 +0,0 @@
|
||||
CFLAGS=-I../../../h -O
|
||||
LDFLAGS =
|
||||
|
||||
cv: cv.o
|
||||
$(CC) -o cv $(LDFLAGS) cv.o
|
||||
|
||||
install: ins_cv
|
||||
ins_cv: cv
|
||||
../../install cv
|
||||
|
||||
cmp: cmp_cv
|
||||
cmp_cv: cv
|
||||
-../../compare cv
|
||||
|
||||
opr:
|
||||
make pr | opr
|
||||
|
||||
pr:
|
||||
@pr `pwd`/cv.c
|
||||
|
||||
clean:
|
||||
-rm -f *.o *.old cv
|
||||
@@ -1,22 +0,0 @@
|
||||
EMHOME=../../..
|
||||
OBJLIB=$(EMHOME)/modules/lib/libobject.a
|
||||
|
||||
head: dl
|
||||
|
||||
dl: dl.c
|
||||
$(CC) -I$(EMHOME)/h -o dl dl.c $(OBJLIB)
|
||||
|
||||
install: head
|
||||
@echo Nothing is installed
|
||||
|
||||
cmp: head
|
||||
@echo Nothing is compared
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
|
||||
pr:
|
||||
@pr `pwd`/Makefile `pwd`/dl.c
|
||||
|
||||
opr:
|
||||
make pr | opr
|
||||
@@ -1,33 +0,0 @@
|
||||
# $Header$
|
||||
MACH=m68k2
|
||||
ASAR=aal
|
||||
all: libem_o.a end.a
|
||||
|
||||
install: all
|
||||
../../install libem_o.a tail_em
|
||||
../../install end.a end_em
|
||||
|
||||
cmp: all
|
||||
-../../compare libem_o.a tail_em
|
||||
-../../compare end.a end_em
|
||||
|
||||
end.a: em_end.s etext.s edata.s end.s
|
||||
$(MACH) -I../../../h -c em_end.s
|
||||
$(MACH) -I../../../h -c edata.s
|
||||
$(MACH) -I../../../h -c etext.s
|
||||
$(MACH) -I../../../h -c end.s
|
||||
$(ASAR) cr end.a em_end.o etext.o edata.o end.o
|
||||
|
||||
libem_o.a: libem_s.a
|
||||
ASAR=$(ASAR) ; export ASAR ;\
|
||||
march . libem_o.a
|
||||
|
||||
clean:
|
||||
rm -f *.o libem_o.a end.a
|
||||
|
||||
opr :
|
||||
make pr | opr
|
||||
|
||||
pr:
|
||||
@arch pv libem_s.a | pr -h `pwd`/libem_s.a
|
||||
@pr `pwd`/em_end.s `pwd`/edata.s `pwd`/etext.s `pwd`/end.s
|
||||
@@ -1,4 +0,0 @@
|
||||
if m68k2 -c $1 1>&2
|
||||
then echo `basename $1 $2`.o
|
||||
else exit 1
|
||||
fi
|
||||
@@ -1,19 +0,0 @@
|
||||
.define .cfi,.cif,.cfu,.cuf,.cff
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
|
||||
.sect .text
|
||||
|
||||
! this is a dummy float conversion routine
|
||||
.cfi:
|
||||
.cif:
|
||||
.cfu:
|
||||
.cuf:
|
||||
.cff:
|
||||
move.l (sp)+,a0 ! return address
|
||||
move (sp)+,d0 ! destination size
|
||||
sub (sp)+,d0 ! diff. in sizes
|
||||
sub d0,sp
|
||||
jmp (a0)
|
||||
@@ -1,9 +0,0 @@
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.define _edata
|
||||
.sect .data
|
||||
.align 4
|
||||
.sect .data
|
||||
_edata:
|
||||
@@ -1,22 +0,0 @@
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.define endtext,enddata,endbss,__end
|
||||
.sect .text
|
||||
.align 4
|
||||
.sect .rom
|
||||
.align 4
|
||||
.sect .data
|
||||
.align 4
|
||||
.sect .bss
|
||||
.align 4
|
||||
.sect .end ! only for declaration of _end, __end and endbss.
|
||||
|
||||
.sect .text
|
||||
endtext:
|
||||
.sect .data
|
||||
enddata:
|
||||
.sect .end
|
||||
__end:
|
||||
endbss:
|
||||
@@ -1,7 +0,0 @@
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.define _end
|
||||
.sect .end ! only for declaration of _end, __end and endbss.
|
||||
_end:
|
||||
@@ -1,9 +0,0 @@
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.define _etext
|
||||
.sect .text
|
||||
.align 4
|
||||
.sect .text
|
||||
_etext:
|
||||
@@ -1,39 +0,0 @@
|
||||
.define .adf4, .adf8, .sbf4, .sbf8, .mlf4, .mlf8, .dvf4, .dvf8
|
||||
.define .ngf4, .ngf8, .fif4, .fif8, .fef4, .fef8
|
||||
.define .cif4, .cif8, .cuf4, .cuf8, .cfi, .cfu, .cff4, .cff8
|
||||
.define .cmf4, .cmf8
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
|
||||
! $Header$
|
||||
|
||||
.sect .text
|
||||
.adf4:
|
||||
.adf8:
|
||||
.sbf4:
|
||||
.sbf8:
|
||||
.mlf4:
|
||||
.mlf8:
|
||||
.dvf4:
|
||||
.dvf8:
|
||||
.ngf4:
|
||||
.ngf8:
|
||||
.fif4:
|
||||
.fif8:
|
||||
.fef4:
|
||||
.fef8:
|
||||
.cif4:
|
||||
.cif8:
|
||||
.cuf4:
|
||||
.cuf8:
|
||||
.cfi:
|
||||
.cfu:
|
||||
.cff4:
|
||||
.cff8:
|
||||
.cmf4:
|
||||
.cmf8:
|
||||
move.w #18,-(sp)
|
||||
jsr .trp
|
||||
rts
|
||||
@@ -1,189 +0,0 @@
|
||||
.define _printn
|
||||
.define _printf
|
||||
.sect .text
|
||||
.sect .rom
|
||||
.sect .data
|
||||
.sect .bss
|
||||
.sect .text
|
||||
_putchar:
|
||||
move.w #1,-(sp)
|
||||
pea 7(sp)
|
||||
move.w #1,-(sp)
|
||||
jsr _write
|
||||
add.l #8,sp
|
||||
rts
|
||||
_printf:
|
||||
link a6,#-12
|
||||
.sect .data
|
||||
_12:
|
||||
.data2 28786
|
||||
.data2 26990
|
||||
.data2 29798
|
||||
.data2 11875
|
||||
.data2 0
|
||||
.sect .text
|
||||
pea 8+4(a6)
|
||||
move.l (sp)+,-6(a6)
|
||||
I004:
|
||||
move.l 8+0(a6),-(sp)
|
||||
move.l (sp),-(sp)
|
||||
move.l (sp)+,a0
|
||||
add #1,a0
|
||||
move.l a0,-(sp)
|
||||
move.l (sp)+,8+0(a6)
|
||||
move.l (sp)+,a0
|
||||
clr d0
|
||||
move.b (a0),d0
|
||||
move.w d0,-(sp)
|
||||
move.w (sp),-(sp)
|
||||
move.w (sp)+,-2(a6)
|
||||
move.w #37,-(sp)
|
||||
move.w (sp)+,d0
|
||||
cmp (sp)+,d0
|
||||
beq I005
|
||||
move.w -2(a6),-(sp)
|
||||
tst (sp)+
|
||||
beq I002
|
||||
move.w -2(a6),-(sp)
|
||||
jsr _putchar
|
||||
add #2,sp
|
||||
jmp I004
|
||||
I005:
|
||||
move.l 8+0(a6),-(sp)
|
||||
move.l (sp),-(sp)
|
||||
move.l (sp)+,a0
|
||||
add #1,a0
|
||||
move.l a0,-(sp)
|
||||
move.l (sp)+,8+0(a6)
|
||||
move.l (sp)+,a0
|
||||
clr d0
|
||||
move.b (a0),d0
|
||||
move.w d0,-(sp)
|
||||
move.w (sp)+,-2(a6)
|
||||
move.w -2(a6),-(sp)
|
||||
move.w #100,-(sp)
|
||||
move.w (sp)+,d0
|
||||
cmp (sp)+,d0
|
||||
beq I008
|
||||
move.w -2(a6),-(sp)
|
||||
move.w #117,-(sp)
|
||||
move.w (sp)+,d0
|
||||
cmp (sp)+,d0
|
||||
bne I007
|
||||
I008:
|
||||
move.l -6(a6),-(sp)
|
||||
move.l (sp)+,a0
|
||||
add #2,a0
|
||||
move.l a0,-(sp)
|
||||
move.l (sp),-(sp)
|
||||
move.l (sp)+,-6(a6)
|
||||
move.l (sp)+,a0
|
||||
move.w -2(a0),-(sp)
|
||||
move.w (sp)+,-8(a6)
|
||||
move.w -2(a6),-(sp)
|
||||
move.w #100,-(sp)
|
||||
move.w (sp)+,d0
|
||||
cmp (sp)+,d0
|
||||
bne I009
|
||||
move.w -8(a6),-(sp)
|
||||
tst (sp)+
|
||||
bge I009
|
||||
move.w #0,-(sp)
|
||||
move.w -8(a6),-(sp)
|
||||
move.w (sp)+,d0
|
||||
move.w (sp)+,d1
|
||||
sub d0,d1
|
||||
move.w d1,-(sp)
|
||||
move.w (sp)+,-8(a6)
|
||||
move.w #45,-(sp)
|
||||
jsr _putchar
|
||||
add #2,sp
|
||||
I009:
|
||||
move.w -8(a6),-(sp)
|
||||
jsr _printn
|
||||
add #2,sp
|
||||
jmp I004
|
||||
I007:
|
||||
move.w -2(a6),-(sp)
|
||||
move.w #115,-(sp)
|
||||
move.w (sp)+,d0
|
||||
cmp (sp)+,d0
|
||||
bne I004
|
||||
move.l -6(a6),-(sp)
|
||||
move.l (sp)+,a0
|
||||
add #4,a0
|
||||
move.l a0,-(sp)
|
||||
move.l (sp),-(sp)
|
||||
move.l (sp)+,-6(a6)
|
||||
move.l (sp)+,a0
|
||||
move.l -4(a0),-(sp)
|
||||
move.l (sp)+,-12(a6)
|
||||
I00c:
|
||||
move.l -12(a6),-(sp)
|
||||
move.l (sp),-(sp)
|
||||
move.l (sp)+,a0
|
||||
add #1,a0
|
||||
move.l a0,-(sp)
|
||||
move.l (sp)+,-12(a6)
|
||||
move.l (sp)+,a0
|
||||
clr d0
|
||||
move.b (a0),d0
|
||||
move.w d0,-(sp)
|
||||
move.w (sp),-(sp)
|
||||
move.w (sp)+,-2(a6)
|
||||
tst (sp)+
|
||||
beq I004
|
||||
move.w -2(a6),-(sp)
|
||||
jsr _putchar
|
||||
add #2,sp
|
||||
jmp I00c
|
||||
I002:
|
||||
unlk a6
|
||||
rts
|
||||
_printn:
|
||||
link a6,#-2
|
||||
.sect .data
|
||||
_15:
|
||||
.data2 12337
|
||||
.data2 12851
|
||||
.data2 13365
|
||||
.data2 13879
|
||||
.data2 14393
|
||||
.data2 0
|
||||
.sect .text
|
||||
move.w 8+0(a6),-(sp)
|
||||
move.w #10,-(sp)
|
||||
move.w (sp)+,d0
|
||||
clr.l d1
|
||||
move.w (sp)+,d1
|
||||
divu d0,d1
|
||||
move.w d1,-(sp)
|
||||
move.w (sp),-(sp)
|
||||
move.w (sp)+,-2(a6)
|
||||
tst (sp)+
|
||||
beq I013
|
||||
move.w -2(a6),-(sp)
|
||||
jsr _printn
|
||||
add #2,sp
|
||||
I013:
|
||||
pea _15
|
||||
move.w 8+0(a6),-(sp)
|
||||
move.w #10,-(sp)
|
||||
move.w (sp)+,d0
|
||||
clr.l d1
|
||||
move.w (sp)+,d1
|
||||
divu d0,d1
|
||||
swap d1
|
||||
move.w d1,-(sp)
|
||||
move.w (sp)+,d0
|
||||
ext.l d0
|
||||
add.l (sp)+,d0
|
||||
move.l d0,-(sp)
|
||||
move.l (sp)+,a0
|
||||
clr d0
|
||||
move.b (a0),d0
|
||||
move.w d0,-(sp)
|
||||
jsr _putchar
|
||||
add #2,sp
|
||||
unlk a6
|
||||
rts
|
||||
@@ -1,22 +0,0 @@
|
||||
EMHOME=../../..
|
||||
SUF=o
|
||||
MAKEFILE=$(EMHOME)/mach/proto/fp/Makefile
|
||||
MACHDEF="MACH=m68k2" "SUF=$(SUF)" "ASAR=aal"
|
||||
|
||||
all:
|
||||
make -f $(MAKEFILE) $(MACHDEF) all
|
||||
|
||||
install:
|
||||
make -f $(MAKEFILE) $(MACHDEF) install
|
||||
|
||||
cmp: all
|
||||
-../../compare FP_$(MACH).a tail_fp
|
||||
|
||||
clean:
|
||||
make -f $(MAKEFILE) $(MACHDEF) clean
|
||||
|
||||
opr:
|
||||
make pr | opr
|
||||
|
||||
pr:
|
||||
@pr Makefile
|
||||
@@ -1,28 +0,0 @@
|
||||
# $Header$
|
||||
MACH=m68k2
|
||||
all: libmon_o.a head_em.o
|
||||
|
||||
install: all
|
||||
../../install head_em.o head_em
|
||||
../../install libmon_o.a tail_mon
|
||||
|
||||
cmp: all
|
||||
-../../compare head_em.o head_em
|
||||
-../../compare libmon_o.a tail_mon
|
||||
|
||||
libmon_o.a: libmon_s.a
|
||||
ASAR=aal ; export ASAR ;\
|
||||
march . libmon_o.a
|
||||
|
||||
head_em.o: head_em.s
|
||||
$(MACH) -c -I../../../h head_em.s
|
||||
|
||||
clean:
|
||||
rm -f *.o libmon_o.a
|
||||
|
||||
opr :
|
||||
make pr | opr
|
||||
|
||||
pr:
|
||||
@pr `pwd`/head_em.s
|
||||
@arch pv libmon_s.a | pr -h `pwd`/libmon_s.a
|
||||
@@ -1,4 +0,0 @@
|
||||
if m68k2 -c -L $1 1>&2
|
||||
then echo `basename $1 $2`.o
|
||||
else exit 1
|
||||
fi
|
||||
@@ -1,197 +0,0 @@
|
||||
# $Header$
|
||||
|
||||
EMHOME=../../..
|
||||
#preprocessor flags for table
|
||||
TABLEFLAGS=
|
||||
#cgg options
|
||||
CGGFLAGS=
|
||||
|
||||
PREFLAGS=-I$(EMHOME)/h -I. -I$(EMHOME)/mach -I$(EMHOME)/modules/h -DNDEBUG
|
||||
PFLAGS=
|
||||
CFLAGS=$(PREFLAGS) $(PFLAGS) -O
|
||||
LDFLAGS=$(PFLAGS)
|
||||
LINTOPTS=-bx
|
||||
LIBS=$(EMHOME)/lib/em_data.a $(EMHOME)/modules/lib/libflt.a
|
||||
CDIR=$(EMHOME)/mach/proto/ncg
|
||||
CGG=$(EMHOME)/lib/ncgg
|
||||
CPP=$(EMHOME)/lib/cpp
|
||||
CFILES=$(CDIR)/codegen.c $(CDIR)/compute.c $(CDIR)/equiv.c $(CDIR)/fillem.c \
|
||||
$(CDIR)/gencode.c $(CDIR)/glosym.c $(CDIR)/label.c $(CDIR)/main.c \
|
||||
$(CDIR)/move.c $(CDIR)/nextem.c $(CDIR)/reg.c $(CDIR)/regvar.c \
|
||||
$(CDIR)/salloc.c $(CDIR)/state.c $(CDIR)/subr.c $(CDIR)/var.c
|
||||
OFILES=codegen.o compute.o equiv.o fillem.o gencode.o glosym.o label.o \
|
||||
main.o move.o nextem.o reg.o regvar.o salloc.o state.o subr.o var.o
|
||||
|
||||
all: tables.c
|
||||
make "EMHOME="$(EMHOME) cg
|
||||
|
||||
cg: tables.o $(OFILES)
|
||||
$(CC) $(LDFLAGS) $(OFILES) tables.o $(LIBS) -o cg
|
||||
|
||||
tables.o: tables.c
|
||||
$(CC) -c $(PREFLAGS) -I$(CDIR) tables.c
|
||||
|
||||
codegen.o: $(CDIR)/codegen.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/codegen.c
|
||||
compute.o: $(CDIR)/compute.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/compute.c
|
||||
equiv.o: $(CDIR)/equiv.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/equiv.c
|
||||
fillem.o: $(CDIR)/fillem.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/fillem.c
|
||||
gencode.o: $(CDIR)/gencode.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/gencode.c
|
||||
glosym.o: $(CDIR)/glosym.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/glosym.c
|
||||
label.o: $(CDIR)/label.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/label.c
|
||||
main.o: $(CDIR)/main.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/main.c
|
||||
move.o: $(CDIR)/move.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/move.c
|
||||
nextem.o: $(CDIR)/nextem.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/nextem.c
|
||||
reg.o: $(CDIR)/reg.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/reg.c
|
||||
regvar.o: $(CDIR)/regvar.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/regvar.c
|
||||
salloc.o: $(CDIR)/salloc.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/salloc.c
|
||||
state.o: $(CDIR)/state.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/state.c
|
||||
subr.o: $(CDIR)/subr.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/subr.c
|
||||
var.o: $(CDIR)/var.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/var.c
|
||||
|
||||
install: all
|
||||
$(EMHOME)/mach/install cg
|
||||
|
||||
cmp: all
|
||||
-$(EMHOME)/mach/compare cg
|
||||
|
||||
|
||||
tables.c: table $(CGG)
|
||||
$(CPP) $(TABLEFLAGS) table | $(CGG) $(CGGFLAGS)
|
||||
-cmp tables.h tables.H || cp tables.H tables.h
|
||||
|
||||
lint: $(CFILES) tables.c
|
||||
lint $(LINTOPTS) $(PREFLAGS) -I$(CDIR) $(CFILES) tables.c
|
||||
clean:
|
||||
rm -f *.o tables.c tables.h debug.out cg tables.H
|
||||
|
||||
distr: tables.c
|
||||
rm -f tables1.c tables1.h
|
||||
cp tables.c tables1.c
|
||||
cp tables.h tables1.h
|
||||
chmod -w tables1.[ch]
|
||||
|
||||
codegen.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
codegen.o: $(CDIR)/data.h
|
||||
codegen.o: $(CDIR)/equiv.h
|
||||
codegen.o: $(CDIR)/extern.h
|
||||
codegen.o: $(CDIR)/param.h
|
||||
codegen.o: $(CDIR)/result.h
|
||||
codegen.o: $(CDIR)/state.h
|
||||
codegen.o: tables.h
|
||||
codegen.o: $(CDIR)/types.h
|
||||
compute.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
compute.o: $(CDIR)/data.h
|
||||
compute.o: $(CDIR)/extern.h
|
||||
compute.o: $(CDIR)/glosym.h
|
||||
compute.o: $(CDIR)/label.h
|
||||
compute.o: $(CDIR)/param.h
|
||||
compute.o: $(CDIR)/result.h
|
||||
compute.o: tables.h
|
||||
compute.o: $(CDIR)/types.h
|
||||
equiv.o: $(CDIR)/assert.h
|
||||
equiv.o: $(CDIR)/data.h $(EMHOME)/h/cgg_cg.h
|
||||
equiv.o: $(CDIR)/equiv.h
|
||||
equiv.o: $(CDIR)/extern.h
|
||||
equiv.o: $(CDIR)/param.h
|
||||
equiv.o: $(CDIR)/result.h
|
||||
equiv.o: tables.h
|
||||
equiv.o: $(CDIR)/types.h
|
||||
fillem.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
fillem.o: $(CDIR)/data.h
|
||||
fillem.o: $(CDIR)/extern.h
|
||||
fillem.o: mach.c
|
||||
fillem.o: mach.h
|
||||
fillem.o: $(CDIR)/param.h
|
||||
fillem.o: $(CDIR)/regvar.h
|
||||
fillem.o: $(CDIR)/result.h
|
||||
fillem.o: tables.h
|
||||
fillem.o: $(CDIR)/types.h
|
||||
gencode.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
gencode.o: $(CDIR)/data.h
|
||||
gencode.o: $(CDIR)/extern.h
|
||||
gencode.o: $(CDIR)/param.h
|
||||
gencode.o: $(CDIR)/result.h
|
||||
gencode.o: tables.h
|
||||
gencode.o: $(CDIR)/types.h
|
||||
glosym.o: $(CDIR)/glosym.h
|
||||
glosym.o: $(CDIR)/param.h
|
||||
glosym.o: tables.h
|
||||
glosym.o: $(CDIR)/types.h
|
||||
label.o: $(CDIR)/label.h
|
||||
label.o: $(CDIR)/param.h
|
||||
label.o: tables.h
|
||||
label.o: $(CDIR)/types.h
|
||||
main.o: $(CDIR)/param.h
|
||||
main.o: tables.h
|
||||
move.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
move.o: $(CDIR)/data.h
|
||||
move.o: $(CDIR)/extern.h
|
||||
move.o: $(CDIR)/param.h
|
||||
move.o: $(CDIR)/result.h
|
||||
move.o: tables.h
|
||||
move.o: $(CDIR)/types.h
|
||||
nextem.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
nextem.o: $(CDIR)/data.h
|
||||
nextem.o: $(CDIR)/extern.h
|
||||
nextem.o: $(CDIR)/param.h
|
||||
nextem.o: $(CDIR)/result.h
|
||||
nextem.o: tables.h
|
||||
nextem.o: $(CDIR)/types.h
|
||||
reg.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
reg.o: $(CDIR)/data.h
|
||||
reg.o: $(CDIR)/extern.h
|
||||
reg.o: $(CDIR)/param.h
|
||||
reg.o: $(CDIR)/result.h
|
||||
reg.o: tables.h
|
||||
reg.o: $(CDIR)/types.h
|
||||
regvar.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
regvar.o: $(CDIR)/data.h
|
||||
regvar.o: $(CDIR)/extern.h
|
||||
regvar.o: $(CDIR)/param.h
|
||||
regvar.o: $(CDIR)/regvar.h
|
||||
regvar.o: $(CDIR)/result.h
|
||||
regvar.o: tables.h
|
||||
regvar.o: $(CDIR)/types.h
|
||||
salloc.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
salloc.o: $(CDIR)/data.h
|
||||
salloc.o: $(CDIR)/extern.h
|
||||
salloc.o: $(CDIR)/param.h
|
||||
salloc.o: $(CDIR)/result.h
|
||||
salloc.o: tables.h
|
||||
salloc.o: $(CDIR)/types.h
|
||||
state.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
state.o: $(CDIR)/data.h
|
||||
state.o: $(CDIR)/extern.h
|
||||
state.o: $(CDIR)/param.h
|
||||
state.o: $(CDIR)/result.h
|
||||
state.o: $(CDIR)/state.h
|
||||
state.o: tables.h
|
||||
state.o: $(CDIR)/types.h
|
||||
subr.o: $(CDIR)/assert.h $(EMHOME)/h/cgg_cg.h
|
||||
subr.o: $(CDIR)/data.h
|
||||
subr.o: $(CDIR)/extern.h
|
||||
subr.o: $(CDIR)/param.h
|
||||
subr.o: $(CDIR)/result.h
|
||||
subr.o: tables.h
|
||||
subr.o: $(CDIR)/types.h
|
||||
var.o: $(CDIR)/data.h $(EMHOME)/h/cgg_cg.h
|
||||
var.o: $(CDIR)/param.h
|
||||
var.o: $(CDIR)/result.h
|
||||
var.o: tables.h
|
||||
var.o: $(CDIR)/types.h
|
||||
@@ -1,11 +0,0 @@
|
||||
The file 'table' in this directory contains a back end table for the
|
||||
MC68020 processor as well as one for the MC68000. Both tables use 2 or 4 bytes
|
||||
for words and 4 bytes for pointers. The table must be preprocessed first
|
||||
by the C preprocessor.
|
||||
The file "whichone.h" specifies which code generator is generated:
|
||||
it #defines either TBL68000 or TBL86020, and it defines WORD_SIZE to either
|
||||
2 or 4.
|
||||
The m68k4(TBL68000) cg can very well be used for the MC68010 processor,
|
||||
for it makes rather efficient use of the 68010 loop mode.
|
||||
|
||||
The mach.[ch] files are also suitable for both the m68020 and the m68k[24].
|
||||
@@ -1,144 +0,0 @@
|
||||
#if WORD_SIZE==2
|
||||
#define LLP ldl
|
||||
#define LEP lde
|
||||
#define LFP ldf /* load offsetted pointer */
|
||||
#define SLP sdl
|
||||
#define SEP sde
|
||||
#define SFP sdf /* store offsetted pointer */
|
||||
|
||||
#define ABS_off_int ABS_off2
|
||||
#define ABS_indoff_int ABS_indoff2
|
||||
#define ABSIND_off_int ABSIND_off2
|
||||
#define INDOFF_off_int INDOFF_off2
|
||||
#define OFF_off_int OFF_off2
|
||||
#define OFF_indoff_int OFF_indoff2
|
||||
#define abs_index_int abs_index2
|
||||
#define absolute_int absolute2
|
||||
#define any_int any2
|
||||
#define conreg_int conreg2
|
||||
#define data_int data2
|
||||
#define datalt_int datalt2
|
||||
#define dreg_int dreg2
|
||||
#define imm_cmp_int imm_cmp2
|
||||
#define immediate_int immediate2
|
||||
#define indirect_int indirect2
|
||||
#define index_off_int index_off2
|
||||
#define offsetted_int offsetted2
|
||||
#define post_inc_int post_inc2
|
||||
#define pre_dec_int pre_dec2
|
||||
#define store_int any2
|
||||
#define test_set_int test_set2
|
||||
|
||||
#define add_i add_w
|
||||
#define ADD_I "add.w"
|
||||
#define and_i and_w
|
||||
#define AND_I "and.w"
|
||||
#define asl_i asl_w
|
||||
#define ASL_I "asl.w"
|
||||
#define asr_i asr_w
|
||||
#define ASR_I "asr.w"
|
||||
#define clr_i clr_w
|
||||
#define CLR_I "clr.w"
|
||||
#define cmp_i cmp_w
|
||||
#define cmp2_i cmp2_w
|
||||
#define DEC "sub.w #1,"
|
||||
#define DIVS_I "divs.w"
|
||||
#define DIVU_I "divu.w"
|
||||
#define eor_i eor_w
|
||||
#define EOR_I "eor.w"
|
||||
#define INC "add.w #1,"
|
||||
#define lsr_i lsr_w
|
||||
#define LSR_I "lsr.w"
|
||||
#define move_i move_w
|
||||
#define MOVE_I "move.w"
|
||||
#define muls_i muls_w
|
||||
#define MULS_I "muls.w"
|
||||
#define mulu_i mulu_w
|
||||
#define MULU_I "mulu.w"
|
||||
#define neg_i neg_w
|
||||
#define NEG_I "neg.w"
|
||||
#define not_i not_w
|
||||
#define NOT_I "not.w"
|
||||
#define or_i or_w
|
||||
#define OR_I "or.w"
|
||||
#define rol_i rol_w
|
||||
#define ROL_I "rol.w"
|
||||
#define ror_i ror_w
|
||||
#define ROR_I "ror.w"
|
||||
#define sub_i sub_w
|
||||
#define SUB_I "sub.w"
|
||||
#define tst_i tst_w
|
||||
|
||||
#else
|
||||
|
||||
#define LLP lol
|
||||
#define LEP loe
|
||||
#define LFP lof /* load offsetted pointer */
|
||||
#define SLP stl
|
||||
#define SEP ste
|
||||
#define SFP stf /* store offsetted pointer */
|
||||
|
||||
#define ABS_off_int ABS_off4
|
||||
#define ABS_indoff_int ABS_indoff4
|
||||
#define ABSIND_off_int ABSIND_off4
|
||||
#define INDOFF_off_int INDOFF_off4
|
||||
#define OFF_off_int OFF_off4
|
||||
#define OFF_indoff_int OFF_indoff4
|
||||
#define abs_index_int abs_index4
|
||||
#define absolute_int absolute4
|
||||
#define any_int any4
|
||||
#define conreg_int conreg4
|
||||
#define data_int data4
|
||||
#define datalt_int datalt4
|
||||
#define dreg_int dreg4
|
||||
#define imm_cmp_int imm_cmp4
|
||||
#define immediate_int immediate4
|
||||
#define indirect_int indirect4
|
||||
#define index_off_int index_off4
|
||||
#define offsetted_int offsetted4
|
||||
#define post_inc_int post_inc4
|
||||
#define pre_dec_int pre_dec4
|
||||
#define store_int store4
|
||||
#define test_set_int test_set4
|
||||
|
||||
#define add_i add_l
|
||||
#define ADD_I "add.l"
|
||||
#define and_i and_l
|
||||
#define AND_I "and.l"
|
||||
#define asl_i asl_l
|
||||
#define ASL_I "asl.l"
|
||||
#define asr_i asr_l
|
||||
#define ASR_I "asr.l"
|
||||
#define clr_i clr_l
|
||||
#define CLR_I "clr.l"
|
||||
#define cmp_i cmp_l
|
||||
#define cmp2_i cmp2_l
|
||||
#define DEC "sub.l #1,"
|
||||
#define DIVS_I "divs.l"
|
||||
#define DIVU_I "divu.l"
|
||||
#define eor_i eor_l
|
||||
#define EOR_I "eor.l"
|
||||
#define INC "add.l #1,"
|
||||
#define lsr_i lsr_l
|
||||
#define LSR_I "lsr.l"
|
||||
#define move_i move_l
|
||||
#define MOVE_I "move.l"
|
||||
#define muls_i muls_l
|
||||
#define MULS_I "muls.l"
|
||||
#define mulu_i mulu_l
|
||||
#define MULU_I "mulu.l"
|
||||
#define neg_i neg_l
|
||||
#define NEG_I "neg.l"
|
||||
#define not_i not_l
|
||||
#define NOT_I "not.l"
|
||||
#define or_i or_l
|
||||
#define OR_I "or.l"
|
||||
#define rol_i rol_l
|
||||
#define ROL_I "rol.l"
|
||||
#define ror_i ror_l
|
||||
#define ROR_I "ror.l"
|
||||
#define sub_i sub_l
|
||||
#define SUB_I "sub.l"
|
||||
#define tst_i tst_l
|
||||
|
||||
#endif
|
||||
@@ -1,288 +0,0 @@
|
||||
/* $Id$ */
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
* machine dependent back end routines for the Motorola 68000, 68010 or 68020
|
||||
*/
|
||||
|
||||
#include <whichone.h>
|
||||
|
||||
#if TBL68020
|
||||
#define SYNTAX_68020 1
|
||||
#endif
|
||||
|
||||
#include <stb.h>
|
||||
|
||||
con_part(sz,w) register sz; word w; {
|
||||
|
||||
while (part_size % sz)
|
||||
part_size++;
|
||||
if (part_size == TEM_WSIZE)
|
||||
part_flush();
|
||||
if (sz == 1) {
|
||||
w &= 0xFF;
|
||||
#if WORD_SIZE==4
|
||||
w <<= 8*(3-part_size);
|
||||
part_word |= w;
|
||||
} else if (sz == 2) {
|
||||
w &= 0xFFFF;
|
||||
#endif
|
||||
if (part_size == 0) {
|
||||
/* Shift 8 for m68k2, 16 otherwise */
|
||||
w <<= 4 * TEM_WSIZE;
|
||||
}
|
||||
part_word |= w;
|
||||
} else {
|
||||
assert(sz == TEM_WSIZE);
|
||||
part_word = w;
|
||||
}
|
||||
part_size += sz;
|
||||
}
|
||||
|
||||
con_mult(sz) word sz; {
|
||||
|
||||
if (sz != 4)
|
||||
fatal("bad icon/ucon size");
|
||||
fprintf(codefile,".data4 %s\n",str);
|
||||
}
|
||||
|
||||
#define IEEEFLOAT
|
||||
#define CODE_GENERATOR
|
||||
#define FL_MSL_AT_LOW_ADDRESS 1
|
||||
#define FL_MSW_AT_LOW_ADDRESS 1
|
||||
#define FL_MSB_AT_LOW_ADDRESS 1
|
||||
#include <con_float>
|
||||
|
||||
regscore(off,size,typ,score,totyp)
|
||||
long off;
|
||||
{
|
||||
if (score == 0) return -1;
|
||||
switch(typ) {
|
||||
case reg_float:
|
||||
return -1;
|
||||
case reg_pointer:
|
||||
if (size != 4 || totyp != reg_pointer) return -1;
|
||||
score += (score >> 1);
|
||||
break;
|
||||
case reg_loop:
|
||||
score += 5;
|
||||
/* fall through .. */
|
||||
case reg_any:
|
||||
if (size != TEM_WSIZE || totyp == reg_pointer) return -1;
|
||||
break;
|
||||
}
|
||||
if (off >= 0) {
|
||||
/* parameters must be initialised with an instruction
|
||||
* like "move.l 4(a6),d0", which costs 2 words.
|
||||
*/
|
||||
score -= 2;
|
||||
}
|
||||
score--; /* save/restore */
|
||||
return score;
|
||||
}
|
||||
struct regsav_t {
|
||||
char *rs_reg; /* e.g. "a3" or "d5" */
|
||||
long rs_off; /* offset of variable */
|
||||
int rs_size; /* 2 or 4 bytes */
|
||||
} regsav[9];
|
||||
|
||||
|
||||
int regnr;
|
||||
|
||||
i_regsave()
|
||||
{
|
||||
regnr = 0;
|
||||
}
|
||||
|
||||
full nlocals;
|
||||
|
||||
regreturn()
|
||||
{
|
||||
register struct regsav_t *p;
|
||||
|
||||
if (regnr > 1) {
|
||||
#ifdef SYNTAX_68020
|
||||
fprintf(codefile,"movem.l (-%ld,a6),", nlocals);
|
||||
#else
|
||||
fprintf(codefile,"movem.l -%ld(a6),", nlocals);
|
||||
#endif
|
||||
for (p = regsav; ;) {
|
||||
fputs(p->rs_reg, codefile);
|
||||
if (++p == ®sav[regnr]) break;
|
||||
putc('/',codefile);
|
||||
}
|
||||
putc('\n',codefile);
|
||||
} else if (regnr == 1) {
|
||||
p = regsav;
|
||||
#ifdef SYNTAX_68020
|
||||
fprintf(codefile,"move.l (-%ld,a6),%s\n",nlocals, p->rs_reg);
|
||||
#else
|
||||
fprintf(codefile,"move.l -%ld(a6),%s\n",nlocals, p->rs_reg);
|
||||
#endif
|
||||
}
|
||||
fputs("unlk a6\nrts\n", codefile);
|
||||
}
|
||||
|
||||
f_regsave()
|
||||
{
|
||||
register struct regsav_t *p;
|
||||
|
||||
nlocals += regnr*4;
|
||||
#ifdef TBL68020
|
||||
fprintf(codefile,"link\ta6,#-%ld\n",nlocals);
|
||||
#else
|
||||
if (nlocals > 32768) {
|
||||
fprintf(codefile, "move.l a6,-(sp)\nmove.l sp,a6\nsub #%ld,sp\n", nlocals);
|
||||
}
|
||||
else fprintf(codefile,"link\ta6,#-%ld\n",nlocals);
|
||||
#endif
|
||||
#ifndef NOSTACKTEST
|
||||
fprintf(codefile, "tst.b %s\n",
|
||||
#ifdef SYNTAX_68020
|
||||
"(-40, sp)"
|
||||
#else
|
||||
"-40(sp)"
|
||||
#endif
|
||||
);
|
||||
#endif
|
||||
if (regnr > 1) {
|
||||
fputs("movem.l ", codefile);
|
||||
for (p = regsav; ;) {
|
||||
fputs(p->rs_reg, codefile);
|
||||
if (++p == ®sav[regnr]) break;
|
||||
putc('/',codefile);
|
||||
}
|
||||
fputs(",(sp)\n", codefile);
|
||||
} else if (regnr == 1) {
|
||||
p = regsav;
|
||||
fprintf(codefile,"move.l %s,(sp)\n",p->rs_reg);
|
||||
}
|
||||
/* initialise register-parameters */
|
||||
for (p = regsav; p < ®sav[regnr]; p++) {
|
||||
if (p->rs_off >= 0) {
|
||||
#ifdef SYNTAX_68020
|
||||
fprintf(codefile,"move.%c (%ld,a6),%s\n",
|
||||
#else
|
||||
fprintf(codefile,"move.%c %ld(a6),%s\n",
|
||||
#endif
|
||||
(p->rs_size == 4 ? 'l' : 'w'),
|
||||
p->rs_off,
|
||||
p->rs_reg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
regsave(s,off,size)
|
||||
char *s;
|
||||
long off;
|
||||
{
|
||||
assert (regnr < 9);
|
||||
regsav[regnr].rs_reg = s;
|
||||
regsav[regnr].rs_off = off;
|
||||
regsav[regnr++].rs_size = size;
|
||||
fprintf(codefile, "!Local %ld into %s\n",off,s);
|
||||
}
|
||||
|
||||
prolog(n) full n; {
|
||||
|
||||
nlocals = n;
|
||||
}
|
||||
|
||||
#ifdef MACH_OPTIONS
|
||||
static int gdb_flag = 0;
|
||||
|
||||
mach_option(s)
|
||||
char *s;
|
||||
{
|
||||
if (! strcmp(s, "-gdb")) {
|
||||
gdb_flag = 1;
|
||||
}
|
||||
else {
|
||||
error("Unknown flag %s", s);
|
||||
}
|
||||
}
|
||||
#endif /* MACH_OPTIONS */
|
||||
|
||||
mes(type) word type ; {
|
||||
int argt, a1, a2 ;
|
||||
|
||||
switch ( (int)type ) {
|
||||
case ms_ext :
|
||||
for (;;) {
|
||||
switch ( argt=getarg(
|
||||
ptyp(sp_cend)|ptyp(sp_pnam)|sym_ptyp) ) {
|
||||
case sp_cend :
|
||||
return ;
|
||||
default:
|
||||
strarg(argt) ;
|
||||
fprintf(codefile,".define %s\n",argstr) ;
|
||||
break ;
|
||||
}
|
||||
}
|
||||
case ms_stb:
|
||||
argt = getarg(str_ptyp | cst_ptyp);
|
||||
if (argt == sp_cstx)
|
||||
fputs(".symb \"\", ", codefile);
|
||||
else {
|
||||
fprintf(codefile, ".symb \"%s\", ", str);
|
||||
argt = getarg(cst_ptyp);
|
||||
}
|
||||
a1 = argval;
|
||||
argt = getarg(cst_ptyp);
|
||||
a2 = argval;
|
||||
argt = getarg(cst_ptyp|nof_ptyp|sof_ptyp|ilb_ptyp|pro_ptyp);
|
||||
#ifdef MACH_OPTIONS
|
||||
if (gdb_flag) {
|
||||
if (a1 == N_PSYM) {
|
||||
/* Change offset from AB into offset from
|
||||
the frame pointer.
|
||||
*/
|
||||
argval += 8;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
fprintf(codefile, "%s, 0x%x, %d\n", strarg(argt), a1, a2);
|
||||
argt = getarg(end_ptyp);
|
||||
break;
|
||||
case ms_std:
|
||||
argt = getarg(str_ptyp | cst_ptyp);
|
||||
if (argt == sp_cstx)
|
||||
str[0] = '\0';
|
||||
else {
|
||||
argt = getarg(cst_ptyp);
|
||||
}
|
||||
swtxt();
|
||||
if (argval == N_SLINE
|
||||
#ifdef MACH_OPTIONS
|
||||
&& ! gdb_flag
|
||||
#endif
|
||||
) {
|
||||
#ifdef SYNTAX_68020
|
||||
fputs("jsr (___u_LiB)\n", codefile);
|
||||
#else
|
||||
fputs("jsr ___u_LiB\n", codefile);
|
||||
#endif
|
||||
cleanregs(); /* debugger might change variables */
|
||||
}
|
||||
fprintf(codefile, ".symd \"%s\", 0x%x,", str, (int) argval);
|
||||
argt = getarg(cst_ptyp);
|
||||
fprintf(codefile, "%d\n", (int) argval);
|
||||
argt = getarg(end_ptyp);
|
||||
break;
|
||||
default :
|
||||
while ( getarg(any_ptyp) != sp_cend ) ;
|
||||
break ;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
char *segname[] = {
|
||||
".sect .text", /* SEGTXT */
|
||||
".sect .data", /* SEGCON */
|
||||
".sect .rom", /* SEGROM */
|
||||
".sect .bss" /* SEGBSS */
|
||||
};
|
||||
@@ -1,49 +0,0 @@
|
||||
/* $Id$ */
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
#include <whichone.h>
|
||||
|
||||
#ifndef TBL68020
|
||||
#ifndef TBL68000
|
||||
Something is very wrong here. You must specify the machine: either
|
||||
TBL68000 or TBL68020, in the file whichone.h, then REMOVE tables.c
|
||||
and then run "make" again
|
||||
#endif
|
||||
#endif
|
||||
#if WORD_SIZE!=2 && WORD_SIZE!=4
|
||||
You must specify the appropriate word size, then REMOVE tables.c
|
||||
#endif
|
||||
|
||||
#define ex_ap(y) fprintf(codefile,".extern %s\n",y)
|
||||
#define in_ap(y) /* nothing */
|
||||
|
||||
#define newilb(x) fprintf(codefile,"%s:\n",x)
|
||||
#define newdlb(x) fprintf(codefile,"%s:\n",x)
|
||||
#define dlbdlb(x,y) fprintf(codefile,"%s = %s\n",x,y)
|
||||
#define newlbss(l,x) fprintf(codefile,".comm %s,%ld\n",l,x);
|
||||
|
||||
#define pop_fmt "(sp)+"
|
||||
#define cst_fmt "%ld"
|
||||
#define off_fmt "%ld"
|
||||
#define ilb_fmt "I%x_%x"
|
||||
#define dlb_fmt "I_%d"
|
||||
#define hol_fmt "hol%d"
|
||||
|
||||
#define hol_off "%ld+hol%d"
|
||||
|
||||
#if WORD_SIZE==2
|
||||
#define con_cst(x) fprintf(codefile,".data2\t%ld\n",x)
|
||||
#else
|
||||
#define con_cst(x) fprintf(codefile,".data4\t%ld\n",x)
|
||||
#endif
|
||||
#define con_ilb(x) fprintf(codefile,".data4\t%s\n",x)
|
||||
#define con_dlb(x) fprintf(codefile,".data4\t%s\n",x)
|
||||
|
||||
#define modhead ".sect .text\n.sect .rom\n.sect .data\n.sect .bss\n"
|
||||
|
||||
#define fmt_id(sf,st) sprintf(st,"_%s",sf)
|
||||
|
||||
#define BSS_INIT 0
|
||||
#define MACH_OPTIONS
|
||||
6942
mach/m68k2/ncg/table
6942
mach/m68k2/ncg/table
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
TABLE = mach/m68020/ncg/table
|
||||
@@ -1,42 +0,0 @@
|
||||
EMHOME=../../..
|
||||
LIBS=$(EMHOME)/modules/lib/libstring.a
|
||||
PREFLAGS=-I.
|
||||
PFLAGS=
|
||||
CFLAGS=$(PREFLAGS) $(PFLAGS) -O -DNDEBUG
|
||||
LDFLAGS=$(PFLAGS)
|
||||
LINTOPTS=-bx
|
||||
CDIR=$(EMHOME)/mach/proto/top
|
||||
CFILES=$(CDIR)/top.c $(CDIR)/queue.c
|
||||
OFILES=top.o queue.o
|
||||
|
||||
all: gen.c
|
||||
make top
|
||||
|
||||
top: $(OFILES)
|
||||
$(CC) $(LDFLAGS) $(OFILES) $(LIBS) -o top
|
||||
|
||||
top.o: $(CDIR)/top.c gen.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/top.c
|
||||
|
||||
queue.o: $(CDIR)/queue.c
|
||||
$(CC) -c $(CFLAGS) $(CDIR)/queue.c
|
||||
|
||||
install: all
|
||||
$(EMHOME)/mach/install top
|
||||
|
||||
cmp: all
|
||||
-$(EMHOME)/mach/compare top
|
||||
|
||||
gen.c: table
|
||||
$(EMHOME)/lib/topgen table
|
||||
|
||||
lint: $(CFILES)
|
||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||
|
||||
clean:
|
||||
rm -f *.o gen.c gen.h top
|
||||
|
||||
top.o: gen.h
|
||||
top.o: $(CDIR)/top.h
|
||||
top.o: $(CDIR)/queue.h
|
||||
queue.o: $(CDIR)/queue.h
|
||||
Reference in New Issue
Block a user