dartaotruntime
Command-line tool for running AOT-compiled snapshots of Dart code.
With Dart, you can create pre-compiled Dart applications called AOT snapshots.
Create AOT snapshot app
#
To produce AOT snapshots, use the
aot-snapshot subcommand of the
dart compile command.
Run AOT snapshot app
#
To run AOT programs, use the
dartaotruntime command. This tool supports
Windows, macOS, and Linux.
Review an example
#Here's an example of creating and running an AOT snapshot:
dart compile aot-snapshot bin/myapp.dart
Generated: /Users/me/simpleapp/bin/myapp.aot
dartaotruntime bin/simpleapp.aot
Learn more options
#
To learn more about command-line options, use the
--help flag:
dartaotruntime --help