tools/fast: vfmt fast.v
parent
e040806c36
commit
6a54f3a84d
|
@ -39,14 +39,16 @@ 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 -skip-unused -cc clang -o v.c -show-timings $vdir/cmd/v', 'v.c')
|
diff1 := measure('$vdir/vprod -skip-unused -cc 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 -skip-unused -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 -skip-unused -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