freenode/#sbcl - IRC Chatlog
Search
21:28:34
g_o
hey pretty new to hacking sbcl, is it possible to use functions from modules in "code", on "compiler" modules? when i try to access them i get an error. something about cold / warn compilation? is there a workaround or anywhere i can read an overview about that?
21:35:36
Krystof
an overview of what's going on in the build process: http://research.gold.ac.uk/2336/
21:36:54
Krystof
you are first building a compiler as an application inside a host lisp. In that application, you can use host lisp Common Lisp functions, and anything that's included in the application (basically, everything that's not marked :not-host in build-order.lisp-expr)
21:37:57
Krystof
you can't use, and shouldn't need to use, things that are marked :not-host -- typically those are things that replace host lisp functionality: for example, definitions of CL functions
21:38:03
g_o
Krystof: yeah i figured out i had a host but was looking for a flag or any way to distinguish really who is executing what
22:02:22
g_o
Krystof: oh, i actually am trying to use a :not-host, because i edited it and need some functionality there.
22:07:18
g_o
im thinking about making it the host, and then compiling with changes.. though i guess that beats the purpose of the seperation
22:11:37
pkhuong
then slammed with partial rebuilds for the last bit of iterative testing and development
6:18:36
karlosz
hm, but this shouldn't have changed since the old days. sb-sys:structure!object has always existed
6:20:39
karlosz
Krystof: how did one do such a thing in your day? you would cross compile a fasl and load it into the host with just CL:LOAD?
6:22:40
karlosz
ive got no structs. the error i get is The loaded code expects an incompatible layout for class SB-C::DEBUG-SOURCE.
6:23:11
Krystof
I remember actually trying this for MIPS, where my host was so slow I could cross-compile PCL files one at a time and scp them across faster than the mips could just compile them
6:23:58
Krystof
hm, not sure. Possible that what I was doing meant that there wasn't any debug source
6:24:52
karlosz
would be great to hack on the XC in slime and actually load the code objects on the fly
6:36:49
karlosz
i disabled the layout check and now i get "undefined assembler routine sb-vm::generic-="
6:39:55
karlosz
*sigh* no more need to rename packages to cross compile, the work is offloaded onto actually loading these objects into the renamed system
6:42:51
karlosz
so having a cross compiler sbcl and a fresh sbcl to load the cross compiled objects works well