Open soudegesu opened 6 years ago
公式docを見てみよう https://www.graalvm.org/docs/reference-manual/
公式docにgraal入れた後のコマンド一覧がある
js
runs a JavaScript console with GraalVM.node
is a drop-in replacement for Node.js, using GraalVM’s JavaScript engine.lli
is a high-performance LLVM bitcode interpreter integrated with GraalVM.native-image
builds an ahead-of-time compiled executable or a shared library from Java applications.gu
(Graal updater) can be used to install language packs for Python, R, and Ruby.[root@localhost vagrant]# js --help
Usage: js [OPTION]... [FILE]...
Run JavaScript FILEs on the Graal.js engine. Run an interactive JavaScript shell if no FILE nor --eval is specified.
Arguments that are mandatory for long options are also mandatory for short options.
Basic Options:
-e, --eval CODE evaluate the code
-f, --file FILE load script file
--module FILE load module file
--no-constasvar disallows parsing of 'const' declarations as 'var'
--no-shebang disallows support for files starting with '#!'
--syntax-extensions enable non-spec syntax extensions
--print-result print the return value of each FILE
--scripting enable scripting features (Nashorn compatibility option)
--strict run in strict mode
--version print the version and exit
--show-version print the version and continue
Runtime options:
--polyglot Run with all other guest languages accessible.
--native Run using the native launcher with limited Java access (default).
--native.[option] Pass options to the native image. To see available options, use '--native.help'.
--jvm Run on the Java Virtual Machine with Java access.
--jvm.[option] Pass options to the JVM; for example, '--jvm.classpath=myapp.jar'. To see available options. use '--jvm.help'.
--help Print this help message.
--help:languages Print options for all installed languages.
--help:tools Print options for all installed tools.
--help:expert Print additional options for experts.
--version:graalvm Print GraalVM version information and exit.
--show-version:graalvm Print GraalVM version information and continue execution.
[root@localhost vagrant]# node --help
Usage: node [options] [ -e script | script.js ] [arguments]
Basic Options:
-e, --eval script evaluate script
-p, --print evaluate script and print result
-c, --check syntax check script without executing
-i, --interactive always enter the REPL even if stdin does not appear to be a terminal
-r, --require module to preload (option can be repeated)
Runtime options:
--polyglot Run with all other guest languages accessible.
--native Run using the native launcher with limited Java access (default).
--native.[option] Pass options to the native image. To see available options, use '--native.help'.
--jvm Run on the Java Virtual Machine with Java access.
--jvm.[option] Pass options to the JVM; for example, '--jvm.classpath=myapp.jar'. To see available options. use '--jvm.help'.
--help Print this help message.
--help:languages Print options for all installed languages.
--help:tools Print options for all installed tools.
--help:expert Print additional options for experts.
--version:graalvm Print GraalVM version information and exit.
--show-version:graalvm Print GraalVM version information and continue execution.
[root@localhost vagrant]# lli --help
Usage: lli [OPTION]... [FILE] [PROGRAM ARGS]
Run LLVM bitcode files on the GraalVM's lli.
Mandatory arguments to long options are mandatory for short options too.
Options:
--print-result print the return value
-L <path> set path where lli searches for libraries
--lib <libraries> add library (*.bc or precompiled library *.so/*.dylib)
--version print the version and exit
--show-version print the version and continue
Runtime options:
--polyglot Run with all other guest languages accessible.
--native Run using the native launcher with limited Java access (default).
--native.[option] Pass options to the native image. To see available options, use '--native.help'.
--jvm Run on the Java Virtual Machine with Java access.
--jvm.[option] Pass options to the JVM; for example, '--jvm.classpath=myapp.jar'. To see available options. use '--jvm.help'.
--help Print this help message.
--help:languages Print options for all installed languages.
--help:tools Print options for all installed tools.
--help:expert Print additional options for experts.
--version:graalvm Print GraalVM version information and exit.
--show-version:graalvm Print GraalVM version information and continue execution.
[root@localhost vagrant]# native-image --help
GraalVM native-image building tool
This tool can be used to generate an image that contains ahead-of-time compiled Java code.
Usage: native-image [options] class
(to build an image for a class)
or native-image [options] -jar jarfile
(to build an image for a jar file)
where options include:
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
--class-path <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value> set a system property
-J<flag> pass <flag> directly to the JVM running the image generator
-O<level> 0 - no optimizations, 1 - basic optimizations (default).
--verbose enable verbose output
--version print product version and exit
--help print this help message
--help-extra print help on non-standard options
--report-unsupported-elements-at-runtime
report usage of unsupported methods and fields at run time when
they are accessed the first time, instead of as an error during
image building
--shared build shared library
--static build statically linked executable (requires static libc and zlib)
-da disable assertions in the generated image
-ea enable assertions in the generated image
Available macro-options are:
--language:llvm
--language:js
--tool:regex
--tool:chromeinspector
--tool:profiler
--tool:truffle
[root@localhost vagrant]# gu --help
GraalVM Component Updater v1.0.0
Usage:
gu info [-clFprstuv] <param> prints info about specific component (from file, URL or catalog)
gu available [-lprstuv] <expr> lists components available in catalog
gu install [-0cfForvyY] <param> installs a component package
gu list [-cFlv] <expression> lists installed components, or components from catalog
gu uninstall [-0fxv] <id> uninstalls a component
Common options:
--catalog
-c treat parameters as component IDs from catalog of GraalVM components. This is the default.
--file
-F treat parameters as filenames of packaged components
--debug
-d debugging. Prints stacktraces, ..
--help
-h print help
--no-progress
-n do not display download progress
--url
-u interpret parameters as URLs of packaged components
--verbose
-v be verbose. Prints versions and dependency info
Use
gu <command> -h
centos7に graalvm-ce-1.0.0-rc2 をインストールして試してみる