summaryrefslogtreecommitdiffhomepage
path: root/CompilerFrontend
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-07 12:17:28 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-07 12:21:39 +0100
commit282b4694b7199fe4905761965bdf5ddfdeefbf28 (patch)
tree7e399b877698e8f09f500fc07fc46dc4df7b0a81 /CompilerFrontend
parent3f62373bd7903836f51869a313033f401ee24261 (diff)
compilers: introducing bccl, Binary Compatible Computer Language.
masm: fix add,dec and some issues regarding labels. mpcc: is now a BCCL/C++ compiler. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'CompilerFrontend')
-rw-r--r--CompilerFrontend/cl/.gitignore1
-rw-r--r--CompilerFrontend/cl/compiler.d14
-rw-r--r--CompilerFrontend/cl/man/mpcc.84
3 files changed, 6 insertions, 13 deletions
diff --git a/CompilerFrontend/cl/.gitignore b/CompilerFrontend/cl/.gitignore
index 2641307..5d8c5e5 100644
--- a/CompilerFrontend/cl/.gitignore
+++ b/CompilerFrontend/cl/.gitignore
@@ -6,6 +6,7 @@ bin/masm
bin/mkcdfs
bin/ccplus
bin/cppfront
+bin/bccl
test/*.cc
test/*.64x
*.c.pp
diff --git a/CompilerFrontend/cl/compiler.d b/CompilerFrontend/cl/compiler.d
index 5043b9e..77c9a9a 100644
--- a/CompilerFrontend/cl/compiler.d
+++ b/CompilerFrontend/cl/compiler.d
@@ -66,7 +66,7 @@ public class CompileCommand
import std.datetime;
- mcc_summon_executable("/usr/local/bin/bin/cpp --define __64x0__ 1 --define __LP64__ 1 --define __64000__ 1 --define __OPTIMIZED_C__ 1 " ~
+ mcc_summon_executable("/usr/local/bin/bin/cpp --define __64x0__ 1 --define __LP64__ 1 --define __64000__ 1 --define __BCCL__ 1 " ~
"--define __FILE__ " ~ file ~ " --define __DATE__ " ~ Clock.currTime(UTC()).toString()
~ " " ~
" --working-dir ./ --include-dir " ~ includePath ~ " " ~ file);
@@ -89,16 +89,8 @@ public class CompileCommand
ext ~= ch;
}
- if (ext == ".cc")
- {
- mcc_summon_executable("/usr/local/bin/bin/ccplus --asm=masm -fmax-exceptions 20 --compiler=dolvik " ~
- file ~ ".pp");
- }
- else
- {
- mcc_summon_executable("/usr/local/bin/bin/cc --asm=masm -fmax-exceptions 20 --compiler=dolvik " ~
- file ~ ".pp");
- }
+ mcc_summon_executable("/usr/local/bin/bin/bccl --asm=masm -fmax-exceptions 20 --compiler=dolvik " ~
+ file ~ ".pp");
changed ~= ".64x";
diff --git a/CompilerFrontend/cl/man/mpcc.8 b/CompilerFrontend/cl/man/mpcc.8
index 4cf55d0..d362e5a 100644
--- a/CompilerFrontend/cl/man/mpcc.8
+++ b/CompilerFrontend/cl/man/mpcc.8
@@ -4,8 +4,8 @@
.Sh NAME
.Nm mcc
-.Nd Mahrouss Logic C/C++ Compiler
+.Nd Mahrouss Logic BCCL/C++ Compiler
.Sh DESCRIPTION
-This program compiles C/C++ sources into MP-UX Preferred Executable Format. \ No newline at end of file
+This program compiles BCCL/C++ sources into MP-UX Preferred Executable Format. \ No newline at end of file