You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I would love to learn more about the compilation process of assemblyscript.
So far was able to understand how the Tokenizer and the Parser work together, and I'm able to get the AST of simple programs.
But from here I'm stuck. How does the AST get compiled to IR? ideally I would like to extract the IR out of the process.
And from there I would also love to understand how the Compiler goes from the IR to a module and finally emit the result.
I would love to learn more and potentially contribute to the project once comfortable enough, but can't find any documentation on these low level parts.
The text was updated successfully, but these errors were encountered:
The "IR" in `program.ts` is a representation of the types, functions, variables, classes, etc. in each file, but there isn't an intermediate representation for *actual code* between the AST and the Wasm output. The AST representing statements and expressions ends up being compiled directly to Wasm, as you can see in `compiler.ts` and every `compileXXXX` method.
On Sunday, November 3rd, 2024 at 9:29 AM, Michele Nuzzi ***@***.***> wrote:
Question
Hi I would love to learn more about the compilation process of assemblyscript.
So far was able to understand how the Tokenizer and the Parser work together, and I'm able to get the AST of simple programs.
But from here I'm stuck. How does the AST get compiled to IR? ideally I would like to extract the IR out of the process.
And from there I would also love to understand how the Compiler goes from the IR to a module and finally emit the result.
I would love to learn more and potentially contribute to the project once comfortable enough, but can't find any documentation on these low level parts.
—
Reply to this email directly, [view it on GitHub](#2882), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AS434PGOK2EFBIFER7EJQ6LZ6ZMQJAVCNFSM6AAAAABRC5QBYWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYZTCMZUGQ4DIOI).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
Question
Hi I would love to learn more about the compilation process of assemblyscript.
So far was able to understand how the Tokenizer and the Parser work together, and I'm able to get the AST of simple programs.
But from here I'm stuck. How does the AST get compiled to IR? ideally I would like to extract the IR out of the process.
And from there I would also love to understand how the Compiler goes from the IR to a module and finally emit the result.
I would love to learn more and potentially contribute to the project once comfortable enough, but can't find any documentation on these low level parts.
The text was updated successfully, but these errors were encountered: