Skip to content

Commit

Permalink
docs: RV CompileGuide.md
Browse files Browse the repository at this point in the history
  • Loading branch information
asdawej committed Dec 4, 2023
1 parent 0e21da9 commit c632c9b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CompileGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

```bash
g++ -std=c++17
-fconcepts -Wno-return-type
-fconcepts
-shared -fpic
./src/base/*.cpp ./src/std/*.cpp
-I ./include
Expand All @@ -15,21 +15,21 @@ g++ -std=c++17

```bash
g++ -std=c++17
-fconcepts -Wno-return-type
-fconcepts
-shared -fpic
./src/analyzer.cpp ./dist/base.dll
-I ./include
-o ./dist/analyzer.dll

g++ -std=c++17
-fconcepts -Wno-return-type
-fconcepts
-shared -fpic
./src/compiler.cpp ./dist/base.dll
-I ./include
-o ./dist/compiler.dll

g++ -std=c++17
-fconcepts -Wno-return-type
-fconcepts
-shared -fpic
./src/interpreter.cpp ./dist/base.dll
-I ./include
Expand All @@ -40,10 +40,10 @@ g++ -std=c++17

```bash
g++ -std=c++17
-fconcepts -Wno-return-type
-fconcepts
./src/main.cpp ./dist/*.dll
-I ./include
-o ./dist/tff.exe
```

_关于编译优化选项, 我推荐 `-O3``-Ofast`, 编译大小较小 (其中 `-O3` 编译产物最小) 的同时运行速度较快; 根据试验, `-O2` (加法示例代码不可用) 和 `-Os` (条件循环示例代码不可用) 选项不可使用._
_关于编译优化选项, 经实验, 可以使用 `-O3` 选项._

0 comments on commit c632c9b

Please sign in to comment.