Skip to content

A regression with native compilation #274

@sakgoyal

Description

@sakgoyal

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

> 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)    |
+----------------+----------------------------------------+
> 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions