preparing for release v0.1.0
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 19 Nov 2021 18:34:13 +0000 (12:34 -0600)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Fri, 19 Nov 2021 18:34:13 +0000 (12:34 -0600)
CHANGELOG
core/alloc/heap.onyx
src/onyx.c

index a4a80bef7d8bb59be651804dd5c2822f3b3337e6..4140531dde6ba53642b5bd9bc582e30a84e57c39 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,4 @@
-Release v0.1.0-beta
+Release v0.1.0
 --------------
 This release contains MANY CHANGES because I am terrible at keeping up to date with a
 proper changelog and release schedule. Basically, this is the first release where I
index afddccd2521f39c5aefb999a05abbe29fb95bff0..25dcd31f8de35015226a3e4304d952470d8355fa 100644 (file)
@@ -33,7 +33,16 @@ init :: () {
     }
 }
 
-get_watermark :: () => cast(u32) heap_state.next_alloc;
+get_watermark  :: () => cast(u32) heap_state.next_alloc;
+get_freed_size :: () => {
+    total := 0;
+    block := heap_state.free_list;
+    while block != null {
+        total += block.size;
+        block = block.next;
+    }
+    return total;
+}
 
 #local {
     use package core.intrinsics.wasm {
index 3182ab6ba15a70b92efa3f12b1aa886ca2139944..5af0542b3d85ef995e9a9f483f038af04b0283fe 100644 (file)
@@ -9,7 +9,7 @@
 #include "wasm_emit.h"
 #include "doc.h"
 
-#define VERSION "v0.1.0-beta"
+#define VERSION "v0.1.0"
 
 
 #ifndef CORE_INSTALLATION
@@ -45,9 +45,9 @@ static const char* docstring = "Onyx compiler version " VERSION "\n"
     "\t--verbose, -V           Verbose output.\n"
     "\t           -VV          Very verbose output.\n"
     "\t           -VVV         Very very verbose output (to be used by compiler developers).\n"
-    "\t--use-post-mvp-features Enables post MVP WASM features.\n"
+    "\t--wasm-mvp              Use only WebAssembly MVP features.\n"
+    "\t---multi-threaded       Enables multi-threading for this compilation.\n"
     "\t--doc <doc_file>\n"
-    "\t--use-multi-threading   Enables multi-threading for this compilation.\n"
     "\n"
     "Developer flags:\n"
     "\t--print-function-mappings Prints a mapping from WASM function index to source location.\n"
@@ -134,13 +134,10 @@ static CompileOptions compile_opts_parse(bh_allocator alloc, int argc, char *arg
             else if (!strcmp(argv[i], "--no-file-contents")) {
                 options.no_file_contents = 1;
             }
-            else if (!strcmp(argv[i], "--use-post-mvp-features")) {
-                options.use_post_mvp_features = 1;
-            }
-            else if (!strcmp(argv[i], "--mvp-features-only")) {
+            else if (!strcmp(argv[i], "--wasm-mvp")) {
                 options.use_post_mvp_features = 0;
             }
-            else if (!strcmp(argv[i], "--use-multi-threading")) {
+            else if (!strcmp(argv[i], "--multi-threaded")) {
                 options.use_multi_threading = 1;
             }
             else if (!strcmp(argv[i], "-I")) {