Browse Source

update submodules and global makefile

Yohan Simard 2 years ago
parent
commit
8395da6d9b
7 changed files with 46 additions and 3 deletions
  1. 4
    0
      .gitignore
  2. 1
    1
      CrossAssembleur
  3. 23
    0
      Makefile
  4. 0
    1
      README
  5. 10
    0
      README.md
  6. 1
    1
      compilator-2000
  7. 7
    0
      test.c

+ 4
- 0
.gitignore View File

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

+ 1
- 1
CrossAssembleur

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

+ 23
- 0
Makefile View File

@@ -0,0 +1,23 @@
1
+COMPILATOR_FOLDER = compilator-2000
2
+CROSS_ASSEMBLER = CrossAssembleur
3
+
4
+all: compilateur cross_assembleur
5
+
6
+compilateur: $(COMPILATOR_FOLDER)
7
+	make -C $(COMPILATOR_FOLDER) compilateur
8
+	cp $(COMPILATOR_FOLDER)/compilateur compilateur
9
+
10
+cross_assembleur: $(CROSS_ASSEMBLER)
11
+	make cross_assembleur -C $(CROSS_ASSEMBLER)
12
+	cp $(CROSS_ASSEMBLER)/cross_assembleur cross_assembleur
13
+
14
+clean:
15
+	rm -f cross_assembleur compilateur
16
+	make -C $(COMPILATOR_FOLDER) clean
17
+	make -C $(CROSS_ASSEMBLER) clean
18
+
19
+test.asm: compilateur test.c
20
+	./compilateur test.asm < test.c
21
+
22
+test_cross_bin.txt: cross_assembleur test.asm
23
+	./cross_assembleur test_cross < test.asm

+ 0
- 1
README View File

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

+ 10
- 0
README.md View File

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

+ 1
- 1
compilator-2000

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

+ 7
- 0
test.c View File

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

Loading…
Cancel
Save