We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559029b commit a365f18Copy full SHA for a365f18
docs/docs/cli.md
@@ -75,3 +75,22 @@ options are:
75
-s strip the source code, specify twice to also strip debug info
76
-S n set the maximum stack size to 'n' bytes (default=262144)
77
```
78
+
79
+Here is an example on how to create a standalone executable that embeds QuickJS
80
+and the `examples/hello.js` JavaScript file:
81
82
+```bash
83
+# Make sure you are in the QuickJS source directory.
84
+$ cc hello.c cutils.c libbf.c libregexp.c libunicode.c quickjs.c quickjs-libc.c -I. -o hello
85
+```
86
87
+The resulting binary `hello` will be in the current directory.
88
89
90
+$ ./hello
91
+Hello World
92
93
94
+:::note
95
+We have plans to make this process easier, stay tuned!
96
+:::
0 commit comments