Homework C

This commit is contained in:
Carlos Galindo 2020-01-15 22:39:02 +01:00
parent 76fbabdf53
commit f857a60a28
Signed by: kauron
GPG key ID: 83E68706DEE119A3
2 changed files with 23 additions and 0 deletions

1
HWC/Grade.txt Normal file
View file

@ -0,0 +1 @@
Grade: 10/10

22
HWC/report.txt Normal file
View file

@ -0,0 +1,22 @@
Notes from code review of teamasdf
=========================================
To simplify this summary, the remarks said by other groups will be prefixed with "-", and the responses from teamasdf with "*"
Most problems have been noted by teamasdf in their presentation of their code.
- Usage of emitRaw instead of emit or emitMove (intermittent)
* The coding style changed along the project, and for ditions we forgot to use the proper methods
- There is an empty if somewhere
* Legacy from now removed print statements
- Unnecessary comments containing just code (such as the block comment in builtInRead)
* Again legacy code that should have been deleted
- Some minor things: unused variable in unaryOp and the missing @Override
- In the register counter visitor, the overriding of methods with the same method body as the super-method is not a good practice.
* Noted during the presentation
- The stack alignment in methodDecl that may have been necessary when a bug was present is not necessary once fixed
- Some labels are unused
- The emitRaw statements are copied from a compiled example program and is thus not as easy to read (but may be more efficient)
- The RegisterCountVisitor is located in cd.ir instead of cd.backend.codegen
- The RegisterCountVisitor<A> could have extended ExprVisitor<Integer, Void> instead of ExprVisitor<Integer, A> and having a type parameter.