Compare commits

..

1 commit

Author SHA1 Message Date
8395da6d9b update submodules and global makefile 2021-05-20 11:21:00 +02:00
4 changed files with 36 additions and 2 deletions

4
.gitignore vendored Normal file
View file

@ -0,0 +1,4 @@
compilateur
cross_assembleur
*.asm
*.txt

23
Makefile Normal file
View file

@ -0,0 +1,23 @@
COMPILATOR_FOLDER = compilator-2000
CROSS_ASSEMBLER = CrossAssembleur
all: compilateur cross_assembleur
compilateur: $(COMPILATOR_FOLDER)
make -C $(COMPILATOR_FOLDER) compilateur
cp $(COMPILATOR_FOLDER)/compilateur compilateur
cross_assembleur: $(CROSS_ASSEMBLER)
make cross_assembleur -C $(CROSS_ASSEMBLER)
cp $(CROSS_ASSEMBLER)/cross_assembleur cross_assembleur
clean:
rm -f cross_assembleur compilateur
make -C $(COMPILATOR_FOLDER) clean
make -C $(CROSS_ASSEMBLER) clean
test.asm: compilateur test.c
./compilateur test.asm < test.c
test_cross_bin.txt: cross_assembleur test.asm
./cross_assembleur test_cross < test.asm

View file

@ -2,8 +2,8 @@ This repository includes our compiler, our processor and a cross-assembler
Voici les commandes à entrer dans un terminal pour récupérer et initialiser le projet Voici les commandes à entrer dans un terminal pour récupérer et initialiser le projet
``` ```shell
git clone --recurse-submodules git clone --recurse-submodules https://git.etud.insa-toulouse.fr/ysimard/projet_systeme_info.git
make make
``` ```

7
test.c Normal file
View file

@ -0,0 +1,7 @@
int main(){
int x, y, z;
const PL5_op, b, c;
x = 2;
y = 3 + 3 + x;
x = 3;
}