forked from dart-archive/sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Kasper Lund edited this page May 4, 2015
·
16 revisions
Once you're done Building the Fletch binaries, you can run your Fletch code in two ways: (1) from
source and (2) from snapshot. In the following examples, we assume that you are running on a 32-bit Linux system. You'll have to adjust the path to the fletch_driver
and fletch
binaries on other platforms.
This is the easiest way of running Dart code on top of Fletch. You simply pass the .dart
file to
run to the fletch_driver
binary that matches your platform:
$ out/ReleaseIA32Clang/fletch_driver hello.dart
Hello, World!
Running from a snapshot is also simple. You just instruct fletch_driver
to output a snapshot and then
you run it separately with the raw fletch
binary:
$ out/ReleaseIA32Clang/fletch_driver hello.dart --out hello.snapshot
$ out/ReleaseIA32Clang/fletch hello.snapshot
Hello, World!