Compare commits

..

1 commit

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

4
.gitignore vendored
View file

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

View file

@ -1,23 +0,0 @@
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
```shell
git clone --recurse-submodules https://git.etud.insa-toulouse.fr/ysimard/projet_systeme_info.git
```
git clone --recurse-submodules
make
```

7
test.c
View file

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