aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-01-25 14:42:03 +0100
committerLukas Larsson <[email protected]>2011-01-25 15:44:45 +0100
commitc8ce455e3cd307a564a92161b9e082bcc3672f94 (patch)
treea04e85717aa147fb2a154f48d66de701c188c55b /erts
parentc9aae9e6874950c671c08940d4e72abc616c550e (diff)
downloadotp-c8ce455e3cd307a564a92161b9e082bcc3672f94.tar.gz
otp-c8ce455e3cd307a564a92161b9e082bcc3672f94.tar.bz2
otp-c8ce455e3cd307a564a92161b9e082bcc3672f94.zip
Update escrips to allow the -n or -compile(native) flag, which compiles the code within the escript with the +native flag. You need an HiPE enabled emulator for this to work.
Diffstat (limited to 'erts')
-rw-r--r--erts/doc/src/escript.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/erts/doc/src/escript.xml b/erts/doc/src/escript.xml
index 44c9a5ac68..588508aae6 100644
--- a/erts/doc/src/escript.xml
+++ b/erts/doc/src/escript.xml
@@ -153,7 +153,10 @@ halt(1).</pre>
<p>Execution of interpreted code is slower than compiled code.
If much of the execution takes place in interpreted code it
may be worthwhile to compile it, even though the compilation
- itself will take a little while.</p>
+ itself will take a little while. It is also possible to supply
+ <c>native</c> instead of compile, this will compile the script
+ using the native flag, again depending on the characteristics
+ of the escript this could or could not be worth while.</p>
<p>As mentioned earlier, it is possible to have a script which
contains precompiled <c>beam</c> code. In a precompiled
@@ -397,6 +400,9 @@ ok
Warnings and errors (if any) are written to the standard output, but
the script will not be run. The exit status will be 0 if there were
no errors, and 127 otherwise.</item>
+
+ <tag>-n</tag>
+ <item>Compile the escript using the +native flag.</item>
</taglist>
</section>
</comref>