Teach cross-SF/CREF to dump/load in .nib, .txe, .dkp.
authorTaylor R Campbell <campbell@mumble.net>
Tue, 11 Dec 2018 15:52:07 +0000 (15:52 +0000)
committerTaylor R Campbell <campbell@mumble.net>
Sat, 20 Apr 2019 15:00:01 +0000 (15:00 +0000)
commit050570913f337509f63a488a2b859dda8b2774cf
tree5c98cacfe1aef82ccd3245bbd2e622beb539b968
parent2e042077f3db82a22dd7db5de4511884a73938a5
Teach cross-SF/CREF to dump/load in .nib, .txe, .dkp.

These correspond to .bin, .ext, .pkd.  LOAD-OPTION still loads from
.bin, .ext, .pkd (and .com) for libraries that are installed and are
not macro definitions of subsystems being cross-compiled.

This backwards suffix business is getting a little out of hand.
Possible partial alternatives:

- .xbin/.xext/.xpkd

- invent a static linker in the toolchain that can run on the cross
  host rather than using make.scm and disk-save in the cross target

- devise a portable fasload that sf/cref can use in the cross host

- use a machine-independent file format for .bin/.ext/.pkd

(cherry picked from commit dc21a9094a5107ca7e2c8645cb5ebef8da70dd19)
18 files changed:
src/Makefile.in
src/compiler/base/toplev.scm
src/compiler/machines/C/compiler.sf
src/compiler/machines/C/decls.scm
src/compiler/machines/i386/decls.scm
src/compiler/machines/svm/compiler.sf
src/compiler/machines/svm/decls.scm
src/compiler/machines/x86-64/decls.scm
src/cref/redpkg.scm
src/runtime/load.scm
src/runtime/make.scm
src/runtime/option.scm
src/runtime/packag.scm
src/runtime/runtime.pkg
src/sf/butils.scm
src/sf/sf.pkg
src/sf/toplev.scm
src/win32/win32.sf