combinators.smart command-line compiler.codegen.relocation
compiler.units endian generic generic.single.private grouping
hashtables hashtables.private io io.encodings.binary io.files
-io.pathnames kernel kernel.private layouts make math
+io.pathnames kernel kernel.private layouts locals.types make math
math.bitwise math.order namespaces namespaces.private parser
parser.notes prettyprint quotations sequences sequences.private
source-files splitting strings system vectors vocabs words ;
: emit-special-objects ( -- )
special-objects get [ swap emit-special-object ] assoc-each ;
+: emit-locals ( -- )
+ bootstrapping-image get [ dup local? [ emit-word ] [ drop ] if ] each ;
+
: fixup-header ( -- )
heap-size data-heap-size-offset fixup ;
"Serializing special object table..." print flush
emit-special-objects
"Performing word fixups..." print flush
- fixup-words
+ emit-locals fixup-words
"Performing header fixups..." print flush
fixup-header
"Image length: " write bootstrapping-image get length .