bootstrap.compiler: add -debug-compiler switch which loads compiler but doesn't compile any words
parent
9ef8f6c81d
commit
a3631f1878
|
@ -35,83 +35,87 @@ gc
|
||||||
: compile-unoptimized ( words -- )
|
: compile-unoptimized ( words -- )
|
||||||
[ optimized? not ] filter compile ;
|
[ optimized? not ] filter compile ;
|
||||||
|
|
||||||
nl
|
"debug-compiler" get [
|
||||||
"Compiling..." write flush
|
|
||||||
|
|
||||||
! Compile a set of words ahead of the full compile.
|
nl
|
||||||
! This set of words was determined semi-empirically
|
"Compiling..." write flush
|
||||||
! using the profiler. It improves bootstrap time
|
|
||||||
! significantly, because frequenly called words
|
|
||||||
! which are also quick to compile are replaced by
|
|
||||||
! compiled definitions as soon as possible.
|
|
||||||
{
|
|
||||||
not ?
|
|
||||||
|
|
||||||
2over roll -roll
|
! Compile a set of words ahead of the full compile.
|
||||||
|
! This set of words was determined semi-empirically
|
||||||
|
! using the profiler. It improves bootstrap time
|
||||||
|
! significantly, because frequenly called words
|
||||||
|
! which are also quick to compile are replaced by
|
||||||
|
! compiled definitions as soon as possible.
|
||||||
|
{
|
||||||
|
not ?
|
||||||
|
|
||||||
array? hashtable? vector?
|
2over roll -roll
|
||||||
tuple? sbuf? tombstone?
|
|
||||||
curry? compose? callable?
|
|
||||||
quotation?
|
|
||||||
|
|
||||||
curry compose uncurry
|
array? hashtable? vector?
|
||||||
|
tuple? sbuf? tombstone?
|
||||||
|
curry? compose? callable?
|
||||||
|
quotation?
|
||||||
|
|
||||||
array-nth set-array-nth length>>
|
curry compose uncurry
|
||||||
|
|
||||||
wrap probe
|
array-nth set-array-nth length>>
|
||||||
|
|
||||||
namestack*
|
wrap probe
|
||||||
|
|
||||||
layout-of
|
namestack*
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
layout-of
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
bitand bitor bitxor bitnot
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
bitand bitor bitxor bitnot
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
+ 2/ < <= > >= shift
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
+ 2/ < <= > >= shift
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
new-sequence nth push pop last flip
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
new-sequence nth push pop last flip
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
hashcode* = equal? assoc-stack (assoc-stack) get set
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
hashcode* = equal? assoc-stack (assoc-stack) get set
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
memq? split harvest sift cut cut-slice start index clone
|
|
||||||
set-at reverse push-all class number>string string>number
|
|
||||||
like clone-like
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
memq? split harvest sift cut cut-slice start index clone
|
||||||
|
set-at reverse push-all class number>string string>number
|
||||||
|
like clone-like
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
lines prefix suffix unclip new-assoc update
|
|
||||||
word-prop set-word-prop 1array 2array 3array ?nth
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
lines prefix suffix unclip new-assoc update
|
||||||
|
word-prop set-word-prop 1array 2array 3array ?nth
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
{
|
"." write flush
|
||||||
malloc calloc free memcpy
|
|
||||||
} compile-unoptimized
|
|
||||||
|
|
||||||
"." write flush
|
{
|
||||||
|
malloc calloc free memcpy
|
||||||
|
} compile-unoptimized
|
||||||
|
|
||||||
vocabs [ words compile-unoptimized "." write flush ] each
|
"." write flush
|
||||||
|
|
||||||
" done" print flush
|
vocabs [ words compile-unoptimized "." write flush ] each
|
||||||
|
|
||||||
|
" done" print flush
|
||||||
|
|
||||||
|
] unless
|
Loading…
Reference in New Issue