tools/fast: use -skip-unused
parent
8547762ab8
commit
bdc3f76f68
|
@ -39,14 +39,14 @@ fn main() {
|
||||||
println(' Building vprod...')
|
println(' Building vprod...')
|
||||||
exec('v -o $vdir/vprod -prod -prealloc $vdir/cmd/v')
|
exec('v -o $vdir/vprod -prod -prealloc $vdir/cmd/v')
|
||||||
// exec('v -o $vdir/vprod $vdir/cmd/v') // for faster debugging
|
// exec('v -o $vdir/vprod $vdir/cmd/v') // for faster debugging
|
||||||
diff1 := measure('$vdir/vprod -cc clang -o v.c -show-timings $vdir/cmd/v', 'v.c')
|
diff1 := measure('$vdir/vprod -cc -skip-unused clang -o v.c -show-timings $vdir/cmd/v', 'v.c')
|
||||||
mut tcc_path := 'tcc'
|
mut tcc_path := 'tcc'
|
||||||
$if freebsd {
|
$if freebsd {
|
||||||
tcc_path = '/usr/local/bin/tcc'
|
tcc_path = '/usr/local/bin/tcc'
|
||||||
}
|
}
|
||||||
diff2 := measure('$vdir/vprod -cc $tcc_path -o v2 $vdir/cmd/v', 'v2')
|
diff2 := measure('$vdir/vprod -skip-unused -cc $tcc_path -o v2 $vdir/cmd/v', 'v2')
|
||||||
diff3 := 0 // measure('$vdir/vprod -native $vdir/cmd/tools/1mil.v', 'native 1mil')
|
diff3 := 0 // measure('$vdir/vprod -native $vdir/cmd/tools/1mil.v', 'native 1mil')
|
||||||
diff4 := measure('$vdir/vprod -cc clang $vdir/examples/hello_world.v', 'hello.v')
|
diff4 := measure('$vdir/vprod -skip-unused -cc clang $vdir/examples/hello_world.v', 'hello.v')
|
||||||
vc_size := os.file_size('v.c') / 1000
|
vc_size := os.file_size('v.c') / 1000
|
||||||
// scan/parse/check/cgen
|
// scan/parse/check/cgen
|
||||||
scan, parse, check, cgen, vlines := measure_steps(vdir)
|
scan, parse, check, cgen, vlines := measure_steps(vdir)
|
||||||
|
|
Loading…
Reference in New Issue