Index: tools/precompilation/test.sh |
diff --git a/tools/precompilation/test.sh b/tools/precompilation/test.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..81809e637958475cb71f964c8bad744503fcb76c |
--- /dev/null |
+++ b/tools/precompilation/test.sh |
@@ -0,0 +1,8 @@ |
+#!/bin/bash -ex |
+ |
+./tools/build.py -mdebug -ax64 runtime |
+./out/DebugX64/dart_no_snapshot --precompile ~/hello.dart |
+./out/DebugX64/dart ./tools/precompilation/create_instructions_snapshot_assembly.dart precompiled.instructions precompiled.S |
+gcc -c -o precompiled.o precompiled.S |
+gcc -shared -fPIC -Wl,-soname,libprecompiled.so -o libprecompiled.so precompiled.o |
+LD_LIBRARY_PATH="$LD_LIBRARY_PATH:." gdb -ex run --args ./out/DebugX64/dart --precompiled not_used.dart |