compiler dir because the backend is not really a submodule, so this did
not reflect the real relations of the backend to the rest of the compiler.
git-svn-id: svn://svn.cc65.org/cc65/trunk@713
b7a2c559-68d2-44c3-8de9-
860c34a00d81
/* */
/* */
/* */
-/* (C) 2000 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 2000 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* */
/* */
/* */
-/* (C) 2000 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 2000 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* common */
#include "check.h"
-/* b6502 */
+/* cc65 */
#include "codeopt.h"
#include "codeseg.h"
#include "dataseg.h"
-
-/* cc65 */
#include "symtab.h"
#include "asmcode.h"
#include "xmalloc.h"
/* cc65 */
-#include "error.h"
-#include "global.h"
-
-/* b6502 */
#include "codeinfo.h"
+#include "error.h"
#include "funcinfo.h"
-#include "label.h"
+#include "global.h"
+#include "codelab.h"
#include "opcodes.h"
#include "codeent.h"
/* common */
#include "coll.h"
-/* b6502 */
-#include "label.h"
+/* cc65 */
+#include "codelab.h"
#include "opcodes.h"
#include "xmalloc.h"
#include "xsprintf.h"
-/* b6502 */
-#include "codeseg.h"
-#include "dataseg.h"
-
/* cc65 */
#include "asmcode.h"
-#include "asmlabel.h"
+#include "asmlabel.h"
+#include "codeseg.h"
#include "cpu.h"
+#include "dataseg.h"
#include "error.h"
#include "global.h"
#include "segname.h"
/*****************************************************************************/
-/* Data */
+/* Data */
/*****************************************************************************/
/*****************************************************************************/
-/* Helpers */
+/* Helpers */
/*****************************************************************************/
/*****************************************************************************/
/* */
-/* label.c */
+/* codelab.c */
/* */
/* Code label structure */
/* */
/* common */
#include "xmalloc.h"
-/* b6502 */
-#include "codeent.h"
-#include "label.h"
+/* cc65 */
+#include "codeent.h"
+#include "codelab.h"
/*****************************************************************************/
/* */
-/* label.h */
+/* codelab.h */
/* */
/* Code label structure */
/* */
-#ifndef LABEL_H
-#define LABEL_H
+#ifndef CODELAB_H
+#define CODELAB_H
-/* End of label.h */
+/* End of codelab.h */
#endif
#include "print.h"
/* cc65 */
-#include "global.h"
-
-/* b6502 */
#include "codeent.h"
#include "codeinfo.h"
+#include "global.h"
#include "codeopt.h"
static void OptDeadCode (CodeSeg* S)
/* Remove dead code (code that follows an unconditional jump or an rts/rti
- * and has no label)
+ * and has no label)
*/
{
unsigned I;
-/* b6502 */
+/* cc65 */
#include "codeseg.h"
#include "xsprintf.h"
/* cc65 */
-#include "error.h"
-
-/* b6502 */
#include "codeent.h"
#include "codeinfo.h"
+#include "error.h"
#include "codeseg.h"
#include "attrib.h"
#include "coll.h"
-/* b6502 */
-#include "label.h"
+/* cc65 */
+#include "codelab.h"
# Library directories
COMMON = ../common
-B6502 = b6502
# Default for the compiler lib search path as compiler define
CDEFS=-DCC65_INC=\"/usr/lib/cc65/include/\"
-CFLAGS = -O2 -g -Wall -I$(COMMON) -I$(B6502) $(CDEFS)
+CFLAGS = -O2 -g -Wall -I$(COMMON) $(CDEFS)
CC=gcc
EBIND=emxbind
LDFLAGS=
OBJS = anonname.o \
asmcode.o \
asmlabel.o \
+ codeent.o \
codegen.o \
+ codelab.o \
+ codeopt.o \
+ codeseg.o \
compile.o \
cpu.o \
+ dataseg.o \
datatype.o \
declare.o \
declattr.o \
exprheap.o \
exprnode.o \
funcdesc.o \
+ funcinfo.o \
function.o \
global.o \
goto.o \
loop.o \
macrotab.o \
main.o \
+ opcodes.o \
preproc.o \
pragma.o \
scanner.o \
typecmp.o \
util.o
-LIBS = $(B6502)/b6502.a \
- $(COMMON)/common.a
+LIBS = $(COMMON)/common.a
# ------------------------------------------------------------------------------
@$(MAKE) -f make/gcc.mak all
endif
-$(EXE): $(OBJS) $(LIBS) subs
+$(EXE): $(OBJS) $(LIBS)
$(CC) $(LDFLAGS) -o $(EXE) $(CFLAGS) $(OBJS) $(LIBS)
@if [ $(OS2_SHELL) ] ; then $(EBIND) $(EXE) ; fi
-.PHONY: subs
-subs:
- @for dir in $(COMMON) $(B6502); do \
- $(MAKE) -C $$dir -f make/gcc.mak || exit 1; \
- done
-
clean:
rm -f *~ core *.map
.PHONY: depend dep
depend dep: $(OBJS:.o=.c)
@echo "Creating dependency information"
- $(CC) -I$(COMMON) -I$(B6502) -MM $^ > .depend
+ $(CC) -I$(COMMON) -MM $^ > .depend
#include "check.h"
/* cc65 */
-#include "error.h"
-
-/* b6502 */
#include "codeinfo.h"
+#include "error.h"
#include "opcodes.h"
char Mnemo[4]; /* Mnemonic */
opc_t OPC; /* Opcode */
unsigned Size; /* Size, 0 means "check addressing mode" */
-####
- unsigned char Use;
- unsigned char Load;
-
unsigned Info; /* Usage flags */
} OPCDesc;
/* */
/* */
/* */
-/* (C) 2000 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 2000 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */
/* */
/* */
/* */
-/* (C) 2000 Ullrich von Bassewitz */
-/* Wacholderweg 14 */
-/* D-70597 Stuttgart */
-/* EMail: uz@musoftware.de */
+/* (C) 2000 Ullrich von Bassewitz */
+/* Wacholderweg 14 */
+/* D-70597 Stuttgart */
+/* EMail: uz@cc65.org */
/* */
/* */
/* This software is provided 'as-is', without any expressed or implied */