git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Merge branch 'native' of github.com:andyarvanitis/purescript-native into native
commit34e7275a287201b621cea8d03b9800caf447dc0f authorAndy Arvanitis <andyarvanitis@gmail.com> dateTue 17 May 2016, 20:13 (10 years ago) parentcff014cb9d3ae4
1 file changed+2−2
README.markdown+2−2
README.markdown+2−2
@@ -7,7 +7,7 @@ This is an experimental native compiler/backend for [PureScript](https://github.
77#### Performance
88
99* 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)
1111* Uses PureScript's normal tail call optimizations for generated C++11 code
1212
1313#### Differences from PureScript:
@@ -106,7 +106,7 @@ This assumes you are running OS X or a Unix-like system (Linux, *BSD, etc.), and
1061066. You should now be ready to build a PureScript program.
107107 * 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.
108108
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).
110110
111111 * 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).
112112