Re: [C--] qc-- on FreeBSD
Simone Roghi <[email protected]> Sun, 29 Jun 2008 17:51:54 +0200
| Newsgroups | gmane.comp.lang.c-- |
|---|---|
| Message-ID | <[email protected]> |
Norman Ramsey wrote: > > Simone Roghi wrote: > > Then I got other errors (many errors!), but I have successfully built > > qc-- and now it works well! > > Congratulations, I think you've just done our first BSD port! > > Could you kindly email me your diffs so that I can feed them back into > the master sources? > > > Norman > > Hi, Norman. I sent you my patches to make qc-- work on FreeBSD. Simone _______________________________________________ Cminusminus mailing list [email protected] https://cminusminus.org/mailman/listinfo/cminusminus
patch-interp-client.nw
(text/plain, 371 B)
*** ./interp/client.nw.orig 2004-05-25 19:29:16.000000000 +0200 --- ./interp/client.nw 2008-06-29 17:46:53.000000000 +0200 *************** *** 146,156 **** #include "client.h" #include <stdlib.h> #include <string.h> #include <sys/stat.h> - #include <unistd.h> #include "disasm.h" #include "ccall.h" <<global variable definitions>> --- 146,155 ----
patch-runtime.nw
(text/plain, 637 B)
--- ./runtime/runtime.nw.orig 2007-01-05 15:13:56.000000000 +0200
+++ ./runtime/runtime.nw 2008-06-29 15:14:11.000000000 +0200
@@ -78,6 +78,11 @@
\section{Implementation}
First, the machine-dependent register information.
+<<machine-dependent macro definitions for the public interface ((x86-bsd))>>=
+#define NUM_REGS 12
+<<machine-dependent macro definitions for the implementation ((x86-bsd))>>=
+#define ESP 8 /* r[4] */
+#define PC 0 /* c[0] */
<<machine-dependent macro definitions for the public interface ((x86-linux))>>=
#define NUM_REGS 12
<<machine-dependent macro definitions for the implementation ((x86-linux))>>=
patch-runtime-mkfile
(text/plain, 508 B)
*** ./runtime/mkfile.orig 2006-04-22 17:31:52.000000000 +0200 --- ./runtime/mkfile 2008-06-29 17:11:06.000000000 +0200 *************** *** 130,139 **** --- 130,142 ---- # ------------------------------------------------------------------ # machine-dependent code # ------------------------------------------------------------------ + x86-bsd.o: x86cont.s + as -o $target $prereq + x86-linux.o: x86cont.s as -o $target $prereq x86-cygwin.o: x86cont.s as -o $target $prereq
patch-src-luadriver.nw
(text/plain, 503 B)
*** ./src/luadriver.nw.orig 2006-04-22 17:31:52.000000000 +0200
--- ./src/luadriver.nw 2008-06-29 17:27:04.000000000 +0200
***************
*** 39,48 ****
--- 39,49 ----
}
, As = { path = "as", options = "" }
, backend = Backend.x86
}
SysConfig["x86-cygwin"] = SysConfig["x86-linux"] -- hoping for the best here
+ SysConfig["x86-bsd"] = SysConfig["x86-linux"]
SysConfig["sparc-solaris"] =
{ Ld =
{ path = "gcc"
, options = "-I" .. Config.install_inc
, rtstart = ""