From 282b4694b7199fe4905761965bdf5ddfdeefbf28 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 7 Jan 2024 12:17:28 +0100 Subject: 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 --- CompilerFrontend/cl/.gitignore | 1 + CompilerFrontend/cl/compiler.d | 14 +++----------- CompilerFrontend/cl/man/mpcc.8 | 4 ++-- 3 files changed, 6 insertions(+), 13 deletions(-) (limited to 'CompilerFrontend') 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 -- cgit v1.2.3