Skip to content

2 questions that are relevant to Vox's compile and runtime performance #26

Answered by MrSmith33
rempas asked this question in Q&A
Discussion options

You must be logged in to vote
  1. Optimizations are not a priority atm. I want to make the compiler much more robust first and fix as much corner cases as possible.
  2. Vox is slower due to higher number of passes and higher number of Intermediate Representations used. TCC is closer to a single-pass compiler, because C doesn't need to support forward references. There are of course ways to speed things up a bit, but going to simpler compiler means cutting more corners (which I already cut too many of). Now I am moving towards more systemic solutions instead of hacky ones.
    Atm we are at ~1.2M LoC/s.
    Frontend has big problems with analysis order, which leads to bugs. This is very hard problem to solve. I'm would be ok with tra…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by rempas
Comment options

You must be logged in to vote
4 replies
@MrSmith33
Comment options

@rempas
Comment options

@MrSmith33
Comment options

@rempas
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants