diff options
Add template jit slides and demo
1 files changed, 9 insertions, 0 deletions
| -rw-r--r-- | demo/asm/main.cpp | 9 |
diff --git a/demo/asm/main.cpp b/demo/asm/main.cpp new file mode 100644 index 0000000..ec9ba10 --- /dev/null +++ b/demo/asm/main.cpp @@ -0,0 +1,9 @@ +#include <cstdio>
+#include <cstdint>
+
+extern "C" int64_t add_answer(int64_t x);
+
+int main() {
+ std::printf("The result is %lld\n", add_answer(24));
+ return 0;
+}
|
