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
*** ./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 ----
--- ./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))>>=

*** ./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
*** ./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 = ""
_______________________________________________
Cminusminus mailing list
[email protected]
https://cminusminus.org/mailman/listinfo/cminusminus

Reply via email to