From: Brendan Hansen Date: Fri, 19 Nov 2021 18:34:13 +0000 (-0600) Subject: preparing for release v0.1.0 X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=7c57af284d571ca8062ef1ed40e05d36936acd0f;p=onyx.git preparing for release v0.1.0 --- diff --git a/CHANGELOG b/CHANGELOG index a4a80bef..4140531d 100644 --- 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 diff --git a/core/alloc/heap.onyx b/core/alloc/heap.onyx index afddccd2..25dcd31f 100644 --- a/core/alloc/heap.onyx +++ b/core/alloc/heap.onyx @@ -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 { diff --git a/src/onyx.c b/src/onyx.c index 3182ab6b..5af0542b 100644 --- a/src/onyx.c +++ b/src/onyx.c @@ -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 \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")) {