Open rrthomas opened 4 years ago
Also try separate compilation of applications, e.g. life.fs
. Current problems:
-z muldefs
, but don't know yet if it does the right thing).life.o
with primitives.o
and highlevel.o
does not change the initial branch or dictionary list, so although the Life words are compiled into the image, they are not visible on start-up.
Currently pForth is compiled to a single assembly file. If that file is split into two parts,
primitives.s
andhighlevel.s
, and those two parts are assembled separately, then the resulting object files can be linked to give an image with the following caveats:_does
labels need to be public (this is only needed for_28_CREATE_29__does
).--warn-unresolved-symbols
must be passed told
so that it does not give an error for all the undefined_compilation
symbols.bee-ld --warn-unresolved-symbols primitives.o highlevel.o
) so that the word list links work. This could presumably be fixed by making those links symbolic (and global)._start
? Or does that not in itself cause the linker to put it first?0x20
bytes for spaces in the header fields.