1 ! Copyright (C) 2004, 2008 Slava Pestov.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: arrays debugger generic hashtables io assocs
4 kernel.private kernel math memory namespaces make parser
5 prettyprint sequences vectors words system splitting
6 init io.files bootstrap.image bootstrap.image.private vocabs
7 vocabs.loader system debugger continuations ;
10 "Bootstrap stage 1..." print flush
12 "vocab:bootstrap/primitives.factor" run-file
15 { "resource:core" } vocab-roots set
17 ! Create a boot quotation for the target
20 ! Rehash hashtables, since bootstrap.image creates them
21 ! using the host image's hashing algorithms. We don't
22 ! use each-object here since the catch stack isn't yet
26 [ hashtable? ] pusher [ (each-object) ] dip
32 "math.integers" require
36 "io.streams.c" require
37 "vocabs.loader" require
40 "bootstrap.layouts" require
43 "vocab:bootstrap/stage2.factor"
47 "Cannot find " write write "." print
48 "Please move " write image write " to the same directory as the Factor sources," print
49 "and try again." print
54 bootstrap-boot-quot set