Dart (programming language): Difference between revisions

Content deleted Content added
Dart AOT compilation does not include a runtime
Ahead-of-time module: it’s arguably not portable if platform-specific
Line 145:
 
==== Ahead-of-time module ====
:When [[AOT compilation|compiled ahead of time]],<ref>{{Cite web |last=Obinna |first=Onuoha |date=2020-04-07 |title=How does JIT and AOT work in Dart? |url=https://onuoha.medium.com/how-does-jit-and-aot-work-in-dart-cab2f31d9cb5 |access-date=2023-06-20 |website=Medium |language=en}}</ref> Dart code produces portable, performant, and platform-specific modules. It includes all dependent libraries and packages the app needs. This increases its compilation time. The compiler outputs an app specific to the architecture on which it was compiled.<syntaxhighlight lang="shell">
$ dart compile aot-snapshot <source.dart>
Generated <target_app.aot>