Support cross-compiling from x86 to sparc, unicode. Also fixes some
bugs with dumping unicode strings to fasls on a different endian architecture. Combined with cross-x86-sparc.lisp, this will successfully cross-compile from x86 (OSX) to sparc (Solaris). The result won't, unfortunately, built itself, but if the callback support is commented out, the build is successful. This new build can then be successfully used to do another build that includes callback support. don't know what is causing this issue. compiler/dump.lisp: o DUMP-DATA-MAYBE-BYTE-SWAPPING needs to byte-swap unicode (16-bit) strings. compiler/generic/new-genesis.lisp: o STRING-TO-CORE needs to swap the byte order of unicode strings if the backend and native backend have different endianness. o LOAD-CHAR-CODE should load characters based on the backend, not native-backend. (This not used anymore, though?) o Add new function byte-swap the char codes of a unicode string. o COLD-LOAD-SYMBOL calls MAYBE-BYTE-SWAP-STRING o FOP-UNINTERNED-SYMBOL-SAVE, FOP-UNINTERNED-SMALL-SYMBOL-SAVE, FOP-STRING, FOP-SMALL-STRING, FOP-FOREIGN-FIXUP, and FOP-FOREIGN-DATA-FIXUP need to call MAYBE-BYTE-SWAP-STRING for unicode strings. compiler/ppc/parms.lisp: compiler/sparc/parms.lisp: compiler/x86/parms.lisp: o Initialize backend foreign-linkage space start and entry size appropriately. The target versions are initialized from the backend values now too. lisp/os-common.c: o Some debugging stuff for foreign linkage data to print out symbol names. Currently ifdef'ed out.
Showing
- compiler/dump.lisp 11 additions, 9 deletionscompiler/dump.lisp
- compiler/generic/new-genesis.lisp 65 additions, 22 deletionscompiler/generic/new-genesis.lisp
- compiler/ppc/parms.lisp 6 additions, 1 deletioncompiler/ppc/parms.lisp
- compiler/sparc/parms.lisp 12 additions, 6 deletionscompiler/sparc/parms.lisp
- compiler/x86/parms.lisp 10 additions, 4 deletionscompiler/x86/parms.lisp
- lisp/os-common.c 32 additions, 1 deletionlisp/os-common.c
- tools/cross-scripts/cross-x86-sparc.lisp 377 additions, 0 deletionstools/cross-scripts/cross-x86-sparc.lisp
Loading
Please register or sign in to comment