update submodules and global makefile

This commit is contained in:
Yohan Simard 2021-05-20 11:16:29 +02:00
parent 09266cc111
commit 8395da6d9b
7 changed files with 46 additions and 3 deletions

4
.gitignore vendored Normal file
View file

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

@ -1 +1 @@
Subproject commit 6631ca437b218a793bd17f2c5ad7de8848e65cef
Subproject commit 0e9455b376c012dd202fdd9754136e201f3fd8b7

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

1
README
View file

@ -1 +0,0 @@
This repository includes our compiler, our processor and a cross-assembler

10
README.md Normal file
View file

@ -0,0 +1,10 @@
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
make
```

@ -1 +1 @@
Subproject commit e3ea8ee7099d99271c1e1fc207a92f7f1001012b
Subproject commit ef75bd33b8acc7bd30c543ce19fecddfd349d8b1

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;
}