A regression with native compilation
Windows 10. `clang-cl` compiler.
running it seems fine. but compiling to native breaks it.
I used the code from the website and copied it in
```powershell
> porf test.js
Hello from Porffor/0.60.16! Did you know:
+----------------+----------------------------------------+
| Engine | Execution model |
+----------------+----------------------------------------+
| Porffor | Compiles ahead-of-time (Wasm + native) |
| V8 | Compiles just-in-time |
| SpiderMonkey | Compiles just-in-time |
| JavaScriptCore | Compiles just-in-time |
| QuickJS | Interprets |
| Hermes | Interprets (ahead-of-time bytecode) |
+----------------+----------------------------------------+
```
```powershell
> porf native --compiler="clang-cl" .\test.js .\test.exe; .\test.exe
6ms parsed
79ms generated wasm
27ms optimized
6ms assembled
46ms compiled Wasm to C
[587ms] compiled .\test.js -> .\test.exe (290.8KB)
Hello from Porffor/0.60.16! Did you know:
+----------------+----------------------------------------+
| Engine | Execution model |
+---------------►| Engine ---‼| Engine
| Porffor | Compiles ahead-of-time (Wasm + native) |
| V8 | Compiles just-in-time |
| SpiderMonkey | Compiles just-in-time |
| JavaScriptCore | Compiles just-in-time |
| QuickJS | Interprets |
| Hermes | Interprets (ahead-of-time bytecode) |
+---------------►| Engine ---‼| Engine
```
0 条评论