Stack usage optimization for TAC-to-Java bytecode translation#358
Open
leraroden wants to merge 149 commits intoopalj:developfrom
Open
Stack usage optimization for TAC-to-Java bytecode translation#358leraroden wants to merge 149 commits intoopalj:developfrom
leraroden wants to merge 149 commits intoopalj:developfrom
Conversation
added parameters for: path to dir where the .class files are and for the path to dir where the new .class files are going to be located
They just have to be treated as reference types
…calling because after "return" goes "goto", which breaks the correct bytecode order.
…ithmeticOperations.java
# Conflicts: # OPAL/ProjectDependencies.mmd # build.sbt
…mulation # Conflicts: # OPAL/tac2bc/src/main/scala/org/opalj/tac2bc/ExprProcessor.scala # OPAL/tac2bc/src/main/scala/org/opalj/tac2bc/StmtProcessor.scala # OPAL/tac2bc/src/main/scala/org/opalj/tac2bc/Tac2BcContext.scala
…odCall have been compiled before merge)
This reverts commit e3db6e1.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a stack optimization for the translation from Three-Address Code to Java bytecode, developed in the context of a bachelor’s thesis. The approach performs a backward analysis of TAC instructions combined with a recursive depth-first traversal.
The implementation was evaluated using:
The following TAC instructions are currently not supported:
The evaluation shows that the backward analysis consistently produces correct bytecode and significantly reduces the total number of instructions as well as load/store operations compared to the baseline translation.