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
Was this page's content helpful?
Thank you for your feedback!
Provide details Thank you for your feedback! Please let us know what we can do to improve.
Provide details Unless stated otherwise, the documentation on this site reflects Dart 3.8.1. Page last updated on 2024-02-07. View source or report an issue.