Compare commits
1 commit
fe52fe63fc
...
8395da6d9b
Author | SHA1 | Date | |
---|---|---|---|
8395da6d9b |
4 changed files with 36 additions and 2 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
compilateur
|
||||
cross_assembleur
|
||||
*.asm
|
||||
*.txt
|
23
Makefile
Normal file
23
Makefile
Normal 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
|
|
@ -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
|
||||
|
||||
```
|
||||
git clone --recurse-submodules
|
||||
```shell
|
||||
git clone --recurse-submodules https://git.etud.insa-toulouse.fr/ysimard/projet_systeme_info.git
|
||||
make
|
||||
```
|
||||
|
7
test.c
Normal file
7
test.c
Normal file
|
@ -0,0 +1,7 @@
|
|||
int main(){
|
||||
int x, y, z;
|
||||
const PL5_op, b, c;
|
||||
x = 2;
|
||||
y = 3 + 3 + x;
|
||||
x = 3;
|
||||
}
|
Loading…
Reference in a new issue