Builds on i386 Fedora 9 system. Haven't yet verified that Exeuctor works with it, though.

This commit is contained in:
Clifford T. Matthews 2009-06-01 15:45:49 -06:00
parent 9409c41302
commit 253d704e71
5 changed files with 18 additions and 10 deletions

17
README
View File

@ -1,9 +1,6 @@
Syn68k has not been actively worked on for about thirteen years. A few Syn68k has not been actively worked on since about 1995. A few
mods have been made here and there to keep up with changes in gcc. mods have been made here and there to keep up with changes in gcc.
Right now I'm putting it on github (with Mat Hostetter's permission)
as-is. I haven't even tried building it in the last year or so.
My email address is still <ctm@ardi.com>, although ARDI itself is My email address is still <ctm@ardi.com>, although ARDI itself is
defunct. I get a ridiculous amount of spam and will quite possibly defunct. I get a ridiculous amount of spam and will quite possibly
not see email addressed to me. not see email addressed to me.
@ -13,6 +10,14 @@ write a little documentation, explain a little history, maybe even
set up a mailing list for people, etc... but other things have always set up a mailing list for people, etc... but other things have always
taken precedence. taken precedence.
Executor will be put on github soon. I have just made some mods so that Syn68k will compile on a Fedora 9
i386 system. I haven't yet tested it against anywhere else, nor have
I verified that what is created will actually work with Executor.
September 26th 2008 To compile it, try
./autogen.sh
./configure
make
June 1st, 2009

View File

@ -8,6 +8,7 @@ AC_CONFIG_HEADER([config.h])
# Checks for programs. # Checks for programs.
AC_PROG_CC AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_RANLIB AC_PROG_RANLIB
AM_PROG_AS AM_PROG_AS

View File

@ -15,7 +15,7 @@ LOCAL_CFLAGS = -DRUNTIME -Iinclude
all: libsyn68k.a all: libsyn68k.a
%.o:%.c .c.o:
$(CC) $(CFLAGS) -c $(LOCAL_INCLUDES) $< -o $@ $(CC) $(CFLAGS) -c $(LOCAL_INCLUDES) $< -o $@
OBJS = block.o diagnostics.o hash.o rangetree.o translate.o alloc.o \ OBJS = block.o diagnostics.o hash.o rangetree.o translate.o alloc.o \
@ -73,6 +73,8 @@ syn68k.c mapindex.c mapinfo.c profileinfo.gz: ../syngen/syngen syn68k_header.c 6
../runtime/include/hash.h \ ../runtime/include/hash.h \
../runtime/include/interrupt.h \ ../runtime/include/interrupt.h \
../runtime/include/trap.h ../runtime/include/trap.h
cp -p $(srcdir)/68k.scm $(srcdir)/syn68k_header.c $(srcdir)/68k.defines.scm . if [ "$(srcdir)" != "." ]; then \
cp -p $(srcdir)/68k.scm $(srcdir)/syn68k_header.c $(srcdir)/68k.defines.scm . ; \
fi
../syngen/syngen -v 68k.scm ../syngen/syngen -v 68k.scm
gzip -1f profileinfo gzip -1f profileinfo

View File

@ -29,7 +29,7 @@ inline_cmpb (uint8 n1, uint8 n2)
"seto %2" "seto %2"
: "=m" (cpu_state.ccc), "=m" (cpu_state.ccn), : "=m" (cpu_state.ccc), "=m" (cpu_state.ccn),
"=m" (cpu_state.ccv), "=m" (cpu_state.ccnz) "=m" (cpu_state.ccv), "=m" (cpu_state.ccnz)
: "g" (n1), "ri" (n2) : "q" (n1), "ri" (n2)
: "cc"); : "cc");
} }

View File

@ -33,7 +33,7 @@ xlatetable.o: xlatetable.c
xlate.o: xlate.c xlate.o: xlate.c
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $(LOCAL_INCLUDES) -o $(@F) $< $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $(LOCAL_INCLUDES) -o $(@F) $<
%.o:%.c .c.o:
$(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $(LOCAL_INCLUDES) -o $(@F) $< $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) -c $(LOCAL_INCLUDES) -o $(@F) $<
## ifneq ($(NO_NATIVE), TRUE) ## ifneq ($(NO_NATIVE), TRUE)