dartaotruntime
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
Unless stated otherwise, the documentation on this site reflects Dart 3.5.4. Page last updated on 2024-02-07. View source or report an issue.