Giter Club home page Giter Club logo

while-to-nasm-compiler's Introduction

Compilation

Projet de compilation du langage WHILE vers NASM

Réalisé par JOUNEAUX Gwendal et SCHNEIDER-MAUNOURY Timothée.

Objectif

L'objectif de ce projet est de créer un compilateur pour le langage WHILE vers un langage cible choisi par l'équipe projet en utilisant l'outil Xtext.

Fonctionnement du compilateur

Pour pouvoir compiler un fichier WHILE, vous aurez besoin d'avoir un système linux avec NASM d'installé.

Le compilateur permet de traduire un programme .wh en fichier assembleur et en fichier executable. Il fonctionne comme suit :
wh Tests/testsArithmetique.wh -o arith.out
Cela va créer un fichier out.asm, qui sera la traduction directe du code WHILE en assembleur. Puis le script le compile en l'exécutable arith.out. Il suffit ensuite de lancer cet exécutable, avec éventuellement des paramètres :
./arith.out fact 5

Organisation

|---+-- Standalone : Répertoire du compilateur
|     |-- Tests : Répertoire des fichiers de test manuel
|     |-- Tests_Auto : Répertoire des fichiers de test automatiques
|     `-- wh : Script de lancement du compilateur
|     `-- wh.jar : Jar permettant l'exécution du compilateur
|     `-- wh_TestsAuto : Script de lancement des tests automatiques
|     `-- help.txt : Contenu de l'aide du script wh
|     `-- testHelp.wh : Fichier de test utilisé dans l'aide
|
|---+-- Documents
|     `-- rapport-COMP-Gwendal_Jouneaux-Timothée_SchneiderMaunoury.pdf
|     `-- Schéma-de-traduction.pdf
|     `-- Spécification-assembleur.pdf
|
`-- README.md : Ce fichier README

Crédits

Cours : Olivier Ridoux

2018-2019 ESIR spécialité "Système d'Information"

while-to-nasm-compiler's People

Contributors

gwandalff avatar gwendal-jouneaux 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.