Skip to content

Improve access to variables in a stack #10

@ikanago

Description

@ikanago

Now compiler accesses local variables in a stack by storing address of them into rax first, then emits mov [rax] rax. It takes more lines of assembly code.
Rewrite code generator to access local variable with an expression mov [rsp-8] rax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions