Compare commits
1 commit
8395da6d9b
...
fe52fe63fc
Author | SHA1 | Date | |
---|---|---|---|
fe52fe63fc |
4 changed files with 2 additions and 36 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,4 +0,0 @@
|
|||
compilateur
|
||||
cross_assembleur
|
||||
*.asm
|
||||
*.txt
|
23
Makefile
23
Makefile
|
@ -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
|
|
@ -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
7
test.c
|
@ -1,7 +0,0 @@
|
|||
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