some small changes, asm() yields error message
This commit is contained in:
parent
5bbac46b88
commit
78aaf2fd9d
5 changed files with 44 additions and 40 deletions
|
@ -2,38 +2,41 @@
|
||||||
# M A K E F I L E F O R A C K C - C O M P I L E R
|
# M A K E F I L E F O R A C K C - C O M P I L E R
|
||||||
|
|
||||||
# Machine and environ dependent definitions
|
# Machine and environ dependent definitions
|
||||||
EM = /usr/em# # ACK tree on this machine
|
EMHOME = /usr/em# # ACK tree on this machine
|
||||||
DESTINATION = /user1/$$USER/bin# # where to put the stuff
|
DESTINATION = /user1/$$USER/bin# # where to put the stuff
|
||||||
MKDEP = $(EM)/bin/mkdep# # dependency generator
|
MKDEP = $(EMHOME)/bin/mkdep# # dependency generator
|
||||||
MAP =
|
MAP =
|
||||||
#MAP = -DInsertFile=ins_file -DInsertText=ins_text# # bug in m68k2 back end
|
#MAP = -DInsertFile=ins_file -DInsertText=ins_text# bug in m68k2 back end
|
||||||
SIM = /user1/dick/bin/sim# # Dicks sim program
|
SIM = /user1/dick/bin/sim# # Dicks sim program
|
||||||
LINT = /usr/new/lint
|
LINT = /usr/new/lint
|
||||||
|
|
||||||
# Libraries and EM interface definitions
|
# Libraries and EM interface definitions
|
||||||
SYSLIB = $(EM)/modules/lib/libsystem.a
|
SYSLIB = $(EMHOME)/modules/lib/libsystem.a
|
||||||
EMKLIB = $(EM)/modules/lib/libemk.a
|
EMKLIB = $(EMHOME)/modules/lib/libemk.a
|
||||||
EMELIB = $(EM)/modules/lib/libeme.a
|
EMELIB = $(EMHOME)/modules/lib/libeme.a
|
||||||
STRLIB = $(EM)/modules/lib/libstr.a
|
STRLIB = $(EMHOME)/modules/lib/libstr.a
|
||||||
PRTLIB = $(EM)/modules/lib/libprint.a
|
PRTLIB = $(EMHOME)/modules/lib/libprint.a
|
||||||
EMMESLIB = $(EM)/modules/lib/libem_mes.a
|
EMMESLIB = $(EMHOME)/modules/lib/libem_mes.a
|
||||||
INPLIB = $(EM)/modules/lib/libinput.a
|
INPLIB = $(EMHOME)/modules/lib/libinput.a
|
||||||
#CH3LIB = $(EM)/modules/lib/libch3.a
|
#CH3LIB = $(EMHOME)/modules/lib/libch3.a
|
||||||
CH3LIB =
|
CH3LIB =
|
||||||
LIBS = $(INPLIB) $(CH3LIB) $(EMMESLIB) $(EMKLIB) $(PRTLIB) $(STRLIB) $(SYSLIB)
|
LIBS = $(INPLIB) $(CH3LIB) $(EMMESLIB) $(EMKLIB) \
|
||||||
ELIBS = $(INPLIB) $(CH3LIB) $(EMMESLIB) $(EMELIB) $(PRTLIB) $(STRLIB) $(SYSLIB)
|
$(PRTLIB) $(STRLIB) $(SYSLIB)
|
||||||
LIB_INCLUDES = -I$(EM)/modules/h -I$(EM)/modules/pkg
|
ELIBS = $(INPLIB) $(CH3LIB) $(EMMESLIB) $(EMELIB) \
|
||||||
EM_INCLUDES = -I$(EM)/h
|
$(PRTLIB) $(STRLIB) $(SYSLIB)
|
||||||
SYSLLIB = $(EM)/modules/lib/llib-lsys.ln
|
LIB_INCLUDES = -I$(EMHOME)/modules/h -I$(EMHOME)/modules/pkg
|
||||||
EMKLLIB = $(EM)/modules/lib/llib-lemk.ln
|
EM_INCLUDES = -I$(EMHOME)/h
|
||||||
EMELLIB = $(EM)/modules/lib/llib-leme.ln
|
SYSLLIB = $(EMHOME)/modules/lib/llib-lsys.ln
|
||||||
STRLLIB = $(EM)/modules/lib/llib-lstr.ln
|
EMKLLIB = $(EMHOME)/modules/lib/llib-lemk.ln
|
||||||
PRTLLIB = $(EM)/modules/lib/llib-lprint.ln
|
EMELLIB = $(EMHOME)/modules/lib/llib-leme.ln
|
||||||
EMMESLLIB = $(EM)/modules/lib/llib-lmes.ln
|
STRLLIB = $(EMHOME)/modules/lib/llib-lstr.ln
|
||||||
INPLLIB = $(EM)/modules/lib/llib-linput.ln
|
PRTLLIB = $(EMHOME)/modules/lib/llib-lprint.ln
|
||||||
CH3LLIB = $(EM)/modules/lib/llib-lch3.ln
|
EMMESLLIB = $(EMHOME)/modules/lib/llib-lmes.ln
|
||||||
|
INPLLIB = $(EMHOME)/modules/lib/llib-linput.ln
|
||||||
|
CH3LLIB = $(EMHOME)/modules/lib/llib-lch3.ln
|
||||||
LINTLIBS =
|
LINTLIBS =
|
||||||
#LINTLIBS = $(CH3LLIB) $(INPLLIB) $(EMMESLLIB) $(EMKLLIB) $(PRTLLIB) $(STRLLIB) $(SYSLLIB)
|
#LINTLIBS = $(CH3LLIB) $(INPLLIB) $(EMMESLLIB) $(EMKLLIB) \
|
||||||
|
# $(PRTLLIB) $(STRLLIB) $(SYSLLIB)
|
||||||
|
|
||||||
# Where to install the compiler and its driver
|
# Where to install the compiler and its driver
|
||||||
CEMCOM = $(DESTINATION)/cemcom
|
CEMCOM = $(DESTINATION)/cemcom
|
||||||
|
@ -46,12 +49,12 @@ DRIVER = $(DESTINATION)/cem
|
||||||
COPTIONS =
|
COPTIONS =
|
||||||
|
|
||||||
# What parser generator to use and how
|
# What parser generator to use and how
|
||||||
GEN = $(EM)/bin/LLgen
|
GEN = $(EMHOME)/bin/LLgen
|
||||||
GENOPTIONS = -vv
|
GENOPTIONS = -vv
|
||||||
|
|
||||||
# Special #defines during compilation
|
# Special #defines during compilation
|
||||||
CDEFS = $(MAP) $(EM_INCLUDES) $(LIB_INCLUDES)
|
CDEFS = $(MAP) $(EM_INCLUDES) $(LIB_INCLUDES)
|
||||||
CFLAGS = $(CDEFS) $(COPTIONS) -O# # we cannot pass the COPTIONS to lint!
|
CFLAGS = $(CDEFS) $(COPTIONS) -O# we cannot pass the COPTIONS to lint!
|
||||||
|
|
||||||
# Grammar files and their objects
|
# Grammar files and their objects
|
||||||
LSRC = tokenfile.g declar.g statement.g expression.g program.g
|
LSRC = tokenfile.g declar.g statement.g expression.g program.g
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
/* A S M */
|
/* A S M */
|
||||||
|
|
||||||
asm_seen(s, l)
|
code_asm(s, l)
|
||||||
char *s;
|
char *s;
|
||||||
int l;
|
int l;
|
||||||
{
|
{
|
||||||
/* 'asm' '(' string ')' ';'
|
/* 'asm' '(' string ')' ';'
|
||||||
*/
|
*/
|
||||||
warning("\"asm(\"%s\")\" instruction skipped", s);
|
s = s; l = l;
|
||||||
|
error("\"asm instruction not implemented", s);
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ I expand include table with directory name following
|
||||||
M set identifier length
|
M set identifier length
|
||||||
n don't generate register messages
|
n don't generate register messages
|
||||||
p generate linenumbers and filename indications
|
p generate linenumbers and filename indications
|
||||||
while generating compact EM code
|
while generating EM code
|
||||||
P in running the preprocessor do not output '# line' lines
|
P in running the preprocessor do not output '# line' lines
|
||||||
R restricted C
|
R restricted C
|
||||||
T take path following as directory for storing temporary file(s)
|
T take path following as directory for storing temporary file(s)
|
||||||
|
|
|
@ -89,7 +89,7 @@ program:
|
||||||
the declaration in a way different from most other languages:
|
the declaration in a way different from most other languages:
|
||||||
e.g., rather than defining x as a pointer-to-integer, it defines
|
e.g., rather than defining x as a pointer-to-integer, it defines
|
||||||
*x as an integer and lets the compiler deduce that x is actually
|
*x as an integer and lets the compiler deduce that x is actually
|
||||||
pointer-to-integer. This has profound consequences, but for the
|
pointer-to-integer. This has profound consequences, both for the
|
||||||
structure of an identifier definition and for the compiler.
|
structure of an identifier definition and for the compiler.
|
||||||
|
|
||||||
A definition starts with a decl_specifiers, which contains things
|
A definition starts with a decl_specifiers, which contains things
|
||||||
|
|
|
@ -393,6 +393,6 @@ asm_statement
|
||||||
}
|
}
|
||||||
')'
|
')'
|
||||||
';'
|
';'
|
||||||
{ asm_seen(asm_bts, asm_len);
|
{ code_asm(asm_bts, asm_len);
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
Loading…
Add table
Reference in a new issue