diff --git a/README.md b/README.md index f71c581..df4a46f 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,8 @@ Use g++/clang++ on `Linux/macOS/Unix` platform (we suggest `clang`). On `Windows (MinGW-w64)`: +Make sure your MinGW thread model is `posix thread model`, otherwise it may not have the thread library. + > mingw32-make nasal.exe You could create project in `Visual Studio` by this way: [__Click__](./doc/vs.md). diff --git a/doc/README_zh.md b/doc/README_zh.md index 6bf3be7..04a4277 100644 --- a/doc/README_zh.md +++ b/doc/README_zh.md @@ -65,6 +65,8 @@ __注意__: 如果你想直接下载发行版提供的zip/tar.gz压缩包来构 `Windows` 平台(`MinGW-w64`): +一定要确保您的 MinGW thread model 是 `posix thread model`, 否则可能存在没有 thread 库的问题。 + > mingw32-make nasal.exe 你也可以在`Visual Studio`中用这种方式来创建项目:[__点击跳转__](../doc/vs.md)。 diff --git a/main.cpp b/main.cpp index a1f2741..e8734fe 100644 --- a/main.cpp +++ b/main.cpp @@ -1,163 +1,164 @@ -#include "nasal.h" -#include "nasal_err.h" -#include "nasal_lexer.h" -#include "nasal_ast.h" -#include "nasal_parse.h" -#include "nasal_import.h" -#include "nasal_opt.h" -#include "nasal_gc.h" -#include "nasal_builtin.h" -#include "nasal_codegen.h" -#include "nasal_vm.h" -#include "nasal_dbg.h" - -#include - -const u32 VM_AST =0x01; -const u32 VM_CODE =0x02; -const u32 VM_TIME =0x04; -const u32 VM_EXEC =0x08; -const u32 VM_DETAIL=0x10; -const u32 VM_DEBUG =0x20; - -std::ostream& help(std::ostream& out) { - out - <<" ,--#-,\n" - <<"<3 / \\____\\ <3\n" - <<" |_|__A_|\n" -#ifdef _WIN32 - <<"use command to use unicode.\n" -#endif - <<"\nnasal