Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PLACEHOLDER] abolish using passes in the compiler; simplify compilation pipeline #21402

Closed
wants to merge 4 commits into from

Conversation

ringabout
Copy link
Member

ref nim-lang/RFCs#503
follow up #21379

The processModule should handle all the logics by calling parser, sem, transf, codegen in order.

@Varriount
Copy link
Contributor

I know that I don't work much with compiler code, but isn't the whole point of compiler passes to simplify and organize its logic? So that you don't have semantic checking, code generation, etc. all mixed together?

@Araq
Copy link
Member

Araq commented Feb 20, 2023

It won't be mixed together but the order of the passes will be explicit in the code rather than hidden in an array that is filled at runtime.

@ringabout ringabout self-assigned this Feb 21, 2023
@ringabout
Copy link
Member Author

As a bonus, the memory consumption seems to reduce a little bit for now.

611.3 MiB => 599.766 MiB peak mem on my platform.

@ringabout ringabout mentioned this pull request Feb 21, 2023
12 tasks
@ringabout
Copy link
Member Author

Succeeded by #21444

@ringabout ringabout closed this Feb 28, 2023
@ringabout ringabout deleted the pr_remove_passes branch February 28, 2023 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants