Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
lukechurchTest edited this page Jan 30, 2015 · 16 revisions

Practicalities

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 your running on a 32-bit Linux system. You'll have to adjust the path to the fletch binary on other platforms.

Running from source

This is the easiest way of running Dart code on top of Fletch. You simply pass the .dart file to run to the fletch binary that matches your platform:

$ build/linux_release_x86/fletch hello.dart
Hello, World!

Running from snapshot

Running from a snapshot is also simple. You just instruct fletch to output a snapshot and then you run it separately:

$ build/linux_release_x86/fletch hello.dart --out=hello.snapshot
$ build/linux_release_x86/fletch hello.snapshot
Hello, World!

Other topics