-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update compiler architecture documentation.
- make the relative point to the right paths - Add "Important files" column to the stages of compilation - Add "Important compiler modules" section with diagram and explanations
- Loading branch information
Showing
2 changed files
with
114 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@startuml | ||
package hc | ||
package Driver | ||
|
||
package Frontend { | ||
package AST | ||
package Parse | ||
package TypeChecking | ||
package Types | ||
|
||
Parse --> AST | ||
TypeChecking --> AST | ||
TypeChecking --> Types | ||
AST -> Types | ||
Types -> AST | ||
} | ||
|
||
package IR { | ||
package Analysis | ||
package Mangling | ||
} | ||
|
||
package CodeGen { | ||
package LLVM | ||
} | ||
|
||
hc -> Driver | ||
|
||
Driver ..> Parse: invokes | ||
Driver ..> TypeChecking: invokes | ||
Driver ..> IR: invokes | ||
Driver ..> Analysis: invokes | ||
Driver ..> LLVM: invokes | ||
|
||
LLVM --> IR | ||
|
||
Parse .right.> TypeChecking: runs before | ||
TypeChecking .right.> IR: runs before | ||
@enduml |