Giter Site home page Giter Site logo

golangis / comp-java-- Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.49 MB

This repository contains our implementation of the project for the Compilers course ๐Ÿ–ฅ๏ธโŒจ๏ธ

Shell 0.02% Batchfile 0.02% Java 97.99% ANTLR 1.02% Jasmin 0.94%
compilers feup-comp

comp-java--'s Introduction

Compilers Project (Group 7B)

๐Ÿ‘ฅ Group members

  • Isabel Amaral (up202006677)
  • Mariana Rocha (up202004656)
  • Milena Gouveia (up202008862)

๐Ÿ‘ฉโ€๐Ÿ’ป Distribution of work

  • Isabel Amaral (33%) - Jasmin
  • Mariana Rocha (33%) - Ollir
  • Milena Gouveia (33%) - Semantic Analysis and Optimizations

๐Ÿช› Implemented optimizations

  • Option -o:
    • constant propagation
    • constant folding
  • Option โ€“r=<n> (register allocation):
    • n โ‰ฅ 1: the compiler tries to use at most <n> local variables when generating Jasmin instructions. It aborts and reports an error if <n> is not enough to store the local variables.
    • n = โˆ’1: This is the default value where the compiler uses as many variables as originally present in the OLLIR representation.

๐Ÿ”Ž Self-assessment

The developed project seems to be working as expected except for the optimization where the compiler tries to use the fewest registers as possible (option -r 0). However, considering that all the project requirements and all the remaining optimizations were implemented, we believe that our project deserves a grade of 19-19.5 out of 20.

comp-java--'s People

Contributors

golangis avatar isabel-amaral avatar milenaaluisa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.