aboutsummaryrefslogtreecommitdiff
path: root/emcc
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-03-06 11:41:41 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-03-06 11:42:43 -0800
commit20d5ffb5925d57a5facacce453d4643e8809929d (patch)
tree0fdfca1be241a1792ceaf5c275b674f744a313e2 /emcc
parent1ac8ea0859d91d86c23b5574bd0474887df1b96e (diff)
add docs and testing for mem init file being async
Diffstat (limited to 'emcc')
-rwxr-xr-xemcc11
1 files changed, 10 insertions, 1 deletions
diff --git a/emcc b/emcc
index f7d1a939..3cc294ce 100755
--- a/emcc
+++ b/emcc
@@ -470,7 +470,16 @@ Options that are modified or new in %s include:
1: Emit a separate memory initialization file
in binary format. This is more efficient than
storing it as text inside JavaScript, but does
- mean you have another file to publish.
+ mean you have another file to publish. The
+ binary file will also be loaded asynchronously,
+ which means main() will not be called until
+ the file is downloaded and applied; you cannot
+ call any C functions until it arrives. (Call
+ yourself from main() to know when all async
+ stuff has happened and it is safe to call
+ library functions, as main() will only be
+ called at that time. You can also call
+ addOnPreMain from a preRun.)
-Wno-warn-absolute-paths If not specified, the compiler will warn about any
uses of absolute paths in -I and -L command line