git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge branch 'native' of github.com:andyarvanitis/purescript-native into native
34e7275Andy Arvanitis
README.markdown+2−2
@@ -7,7 +7,7 @@ This is an experimental native compiler/backend for [PureScript](https://github.
7#### Performance
7#### Performance
8
8
9* No runtime system (beyond some support classes and the standard C++11 runtime library)
9* No runtime system (beyond some support classes and the standard C++11 runtime library)
10−* For automatic memory management, uses either native C++11 reference counting (`std::shared_ptr`), or the [Boehm-Demers-Weiser Garbage Collector](http://hboehm.info/gc/) -- **selectable when building** (see instructions below)
10+* For automatic memory management, uses either the [Boehm-Demers-Weiser Garbage Collector](http://hboehm.info/gc/) (the default), or C++11's standard library reference counting (`std::shared_ptr`) -- **selectable when building** (see instructions below)
11* Uses PureScript's normal tail call optimizations for generated C++11 code
11* Uses PureScript's normal tail call optimizations for generated C++11 code
12
12
13#### Differences from PureScript:
13#### Differences from PureScript:
@@ -106,7 +106,7 @@ This assumes you are running OS X or a Unix-like system (Linux, *BSD, etc.), and
1066. You should now be ready to build a PureScript program.
1066. You should now be ready to build a PureScript program.
107 * As stated above, place your source file(s) in the working directory's `src` subdirectory and execute `make`. If your machine has multiple cores, you might want to use `make -jN`, where `N` is the number of cores.
107 * As stated above, place your source file(s) in the working directory's `src` subdirectory and execute `make`. If your machine has multiple cores, you might want to use `make -jN`, where `N` is the number of cores.
108
108
109− * To use the garbage collector, add `USE_GC=yes` to the `make` command line (or you can add it to the `Makefile` that you generated in step 4).
109+ * To use reference counting (`std::shared_ptr`) instead of the garbage collector, add `GC=no` to the `make` command line (or you can modify the `Makefile` that you generated in step 4).
110
110
111 * This will generate the C++ source tree for your program and then build an executable binary. The resulting executable will be in the `bin` subdirectory under the output directory and called `main` (so `output/bin/main`, by default).
111 * This will generate the C++ source tree for your program and then build an executable binary. The resulting executable will be in the `bin` subdirectory under the output directory and called `main` (so `output/bin/main`, by default).
112
112