2013-01-24 05:59:26 +00:00
|
|
|
python xenia-build.py xethunk
|
|
|
|
python xenia-build.py build
|
|
|
|
|
2013-01-27 05:51:31 +00:00
|
|
|
if [ "$?" -ne 0 ]; then
|
|
|
|
echo "Build failed!"
|
|
|
|
exit $?
|
|
|
|
fi
|
|
|
|
|
2013-01-24 05:59:26 +00:00
|
|
|
./build/xenia/release/xenia-run \
|
|
|
|
private/$1 \
|
2013-02-03 11:34:43 +00:00
|
|
|
--dump_path=build/ \
|
|
|
|
--dump_module_map=true \
|
|
|
|
--dump_module_bitcode=true \
|
2013-01-24 08:10:24 +00:00
|
|
|
--optimize_ir_modules=true \
|
2013-01-28 06:14:24 +00:00
|
|
|
--optimize_ir_functions=true \
|
2013-01-28 11:03:37 +00:00
|
|
|
--memory_address_verification=true \
|
2013-01-24 08:10:24 +00:00
|
|
|
--trace_kernel_calls=true \
|
2013-01-28 11:03:37 +00:00
|
|
|
--trace_user_calls=true \
|
2013-01-30 04:27:24 +00:00
|
|
|
--trace_instructions=false \
|
2013-02-03 08:34:45 +00:00
|
|
|
--abort_before_entry=true \
|
2013-01-25 08:32:42 +00:00
|
|
|
1>build/run.txt
|
|
|
|
#2>build/run.llvm.txt \
|
2013-01-24 05:59:26 +00:00
|
|
|
|
|
|
|
if [ ! -s build/run.llvm.txt ]; then
|
|
|
|
rm build/run.llvm.txt
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -e build/$1-preopt.bc ]; then
|
|
|
|
./build/llvm/release/bin/llvm-dis build/$1-preopt.bc
|
|
|
|
fi
|
|
|
|
if [ -e build/$1.bc ]; then
|
|
|
|
./build/llvm/release/bin/llvm-dis build/$1.bc
|
|
|
|
fi
|