summaryrefslogtreecommitdiffhomepage
path: root/dev
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-08 15:26:11 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-02-08 15:26:11 +0100
commitb4bcdc8482f8deae2d25018b4f91593570cf9cf5 (patch)
tree7d989bda9f09274e7235087a6bd1e7ec3cb4ba9d /dev
parent0350589847a0a5bbce5556a62ea5f5df7de29641 (diff)
ADD: Assembler frontend tweaks and other refactors.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev')
-rw-r--r--dev/LibCompiler/AAL/CPU/power64.h2
-rw-r--r--dev/LibCompiler/Parser.h4
-rw-r--r--dev/LibCompiler/src/CCompiler64x0.cc4
-rw-r--r--dev/LibCompiler/src/CCompilerARM64.cc4
-rw-r--r--dev/LibCompiler/src/CCompilerPower64.cc2
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc4
-rw-r--r--dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc4
-rw-r--r--dev/LibCompiler/src/DynamicLinkerELF.cc2
-rw-r--r--dev/LibCompiler/src/DynamicLinkerPEF.cc4
-rw-r--r--dev/LibCompiler/src/String.cc2
10 files changed, 16 insertions, 16 deletions
diff --git a/dev/LibCompiler/AAL/CPU/power64.h b/dev/LibCompiler/AAL/CPU/power64.h
index c95ef6e..da3390f 100644
--- a/dev/LibCompiler/AAL/CPU/power64.h
+++ b/dev/LibCompiler/AAL/CPU/power64.h
@@ -1,7 +1,7 @@
/* -------------------------------------------
Some modifications are copyrighted under:
- Amlal EL Mahrouss.
+ Amlal EL Mahrouss
Original author:
Apple Inc
diff --git a/dev/LibCompiler/Parser.h b/dev/LibCompiler/Parser.h
index 4ca1c75..779bf36 100644
--- a/dev/LibCompiler/Parser.h
+++ b/dev/LibCompiler/Parser.h
@@ -10,7 +10,7 @@
namespace LibCompiler
{
- inline auto kInvalidFrontend = "NoLang";
+ inline auto kInvalidFrontend = "NA";
/// @brief Compiler backend, implements a frontend, such as C, C++...
/// See Toolchain, for some examples.
@@ -38,7 +38,7 @@ namespace LibCompiler
virtual bool IsValid()
{
- return strcmp(this->Language(), kInvalidFrontend);
+ return strcmp(this->Language(), kInvalidFrontend) > 0;
}
};
diff --git a/dev/LibCompiler/src/CCompiler64x0.cc b/dev/LibCompiler/src/CCompiler64x0.cc
index 5090027..2d3fe07 100644
--- a/dev/LibCompiler/src/CCompiler64x0.cc
+++ b/dev/LibCompiler/src/CCompiler64x0.cc
@@ -24,7 +24,7 @@
/* C driver */
/* This is part of the LibCompiler. */
-/* (c) Amlal EL Mahrouss. */
+/* (c) Amlal EL Mahrouss */
/// @author EL Mahrouss Amlal (amlel)
/// @file 64x0-cc.cxx
@@ -1482,7 +1482,7 @@ public:
#define kPrintF printf
#define kSplashCxx() \
- kPrintF(kWhite "NE C Driver, %s, (c) Amlal EL Mahrouss.\n", kDistVersion)
+ kPrintF(kWhite "NE C Driver, %s, (c) Amlal EL Mahrouss\n", kDistVersion)
static void cc_print_help()
{
diff --git a/dev/LibCompiler/src/CCompilerARM64.cc b/dev/LibCompiler/src/CCompilerARM64.cc
index f6ee779..33027b7 100644
--- a/dev/LibCompiler/src/CCompilerARM64.cc
+++ b/dev/LibCompiler/src/CCompilerARM64.cc
@@ -24,7 +24,7 @@
/* C driver */
/* This is part of the LibCompiler. */
-/* (c) Amlal EL Mahrouss. */
+/* (c) Amlal EL Mahrouss */
/// @author EL Mahrouss Amlal (amlel)
/// @file ARM64-cc.cxx
@@ -1480,7 +1480,7 @@ public:
#define kPrintF printf
#define kSplashCxx() \
- kPrintF(kWhite "NE C Driver, %s, (c) Amlal EL Mahrouss.\n", kDistVersion)
+ kPrintF(kWhite "NE C Driver, %s, (c) Amlal EL Mahrouss\n", kDistVersion)
static void cc_print_help()
{
diff --git a/dev/LibCompiler/src/CCompilerPower64.cc b/dev/LibCompiler/src/CCompilerPower64.cc
index f49b9c1..024d5d4 100644
--- a/dev/LibCompiler/src/CCompilerPower64.cc
+++ b/dev/LibCompiler/src/CCompilerPower64.cc
@@ -1502,7 +1502,7 @@ public:
#define kPrintF printf
#define kSplashCxx() \
- kPrintF(kWhite "cc, %s, (c) Amlal EL Mahrouss.\n", kDistVersion)
+ kPrintF(kWhite "cc, %s, (c) Amlal EL Mahrouss\n", kDistVersion)
static void cc_print_help()
{
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
index dc932b7..3a49327 100644
--- a/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
+++ b/dev/LibCompiler/src/CPlusPlusCompilerAMD64.cc
@@ -15,7 +15,7 @@
#define kExitNO (EXIT_FAILURE)
#define kSplashCxx() \
- kPrintF(kWhite "%s\n", "NeOS C++ Compiler Driver, (c) 2024 Amlal EL Mahrouss., all rights reserved.")
+ kPrintF(kWhite "%s\n", "NeOS C++ Compiler Driver, (c) 2024 Amlal EL Mahrouss, all rights reserved.")
// extern_segment, @autodelete { ... }, fn foo() -> auto { ... }
@@ -27,7 +27,7 @@
/* NE C++ Compiler */
/* This is part of the LibCompiler. */
-/* (c) Amlal EL Mahrouss. */
+/* (c) Amlal EL Mahrouss */
/// @author EL Mahrouss Amlal (amlel)
/// @file CPlusPlusCompilerAMD64.cxx
diff --git a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
index 5afb63e..2d4c11a 100644
--- a/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
+++ b/dev/LibCompiler/src/CPlusPlusCompilerPreProcessor.cc
@@ -971,13 +971,13 @@ LIBCOMPILER_MODULE(CPlusPlusPreprocessorMain)
{
if (strcmp(argv[index], "--bpp:ver") == 0)
{
- printf("%s\n", "bpp v1.11, (c) Amlal EL Mahrouss.");
+ printf("%s\n", "bpp v1.11, (c) Amlal EL Mahrouss");
return 0;
}
if (strcmp(argv[index], "--bpp:?") == 0)
{
- printf("%s\n", "NE Preprocessor Driver v1.11, (c) Amlal EL Mahrouss.");
+ printf("%s\n", "NE Preprocessor Driver v1.11, (c) Amlal EL Mahrouss");
printf("%s\n", "--bpp:working-dir <path>: set directory to working path.");
printf("%s\n", "--bpp:include-dir <path>: add directory to include path.");
printf("%s\n", "--bpp:def <name> <value>: define a macro.");
diff --git a/dev/LibCompiler/src/DynamicLinkerELF.cc b/dev/LibCompiler/src/DynamicLinkerELF.cc
index da3493b..7a1e66f 100644
--- a/dev/LibCompiler/src/DynamicLinkerELF.cc
+++ b/dev/LibCompiler/src/DynamicLinkerELF.cc
@@ -32,7 +32,7 @@
#include <LibCompiler/NFC/AE.h>
#include <cstdint>
-#define kLinkerVersionStr "NeOS 64-Bit Linker (ELF) %s, (c) Amlal EL Mahrouss. 2024, all rights reserved.\n"
+#define kLinkerVersionStr "NeOS 64-Bit Linker (ELF) %s, (c) Amlal EL Mahrouss 2024, all rights reserved.\n"
#define MemoryCopy(DST, SRC, SZ) memcpy(DST, SRC, SZ)
#define StringCompare(DST, SRC) strcmp(DST, SRC)
diff --git a/dev/LibCompiler/src/DynamicLinkerPEF.cc b/dev/LibCompiler/src/DynamicLinkerPEF.cc
index 0bc88c2..e857eb9 100644
--- a/dev/LibCompiler/src/DynamicLinkerPEF.cc
+++ b/dev/LibCompiler/src/DynamicLinkerPEF.cc
@@ -32,7 +32,7 @@
#include <LibCompiler/NFC/AE.h>
#include <cstdint>
-#define kLinkerVersionStr "NeOS 64-Bit Linker (Preferred Executable) %s, (c) Amlal EL Mahrouss. 2024, all rights reserved.\n"
+#define kLinkerVersionStr "NeOS 64-Bit Linker (Preferred Executable) %s, (c) Amlal EL Mahrouss 2024, all rights reserved.\n"
#define MemoryCopy(DST, SRC, SZ) memcpy(DST, SRC, SZ)
#define StringCompare(DST, SRC) strcmp(DST, SRC)
@@ -256,7 +256,7 @@ LIBCOMPILER_MODULE(DynamicLinker64PEF)
pef_container.Count = 0UL;
pef_container.Kind = is_executable ? LibCompiler::kPefKindExec : LibCompiler::kPefKindDylib;
pef_container.SubCpu = kSubArch;
- pef_container.Linker = kLinkerId; // Amlal EL Mahrouss. Linker
+ pef_container.Linker = kLinkerId; // Amlal EL Mahrouss Linker
pef_container.Abi = kAbi; // Multi-Processor UX ABI
pef_container.Magic[0] = kPefMagic[kFatBinaryEnable ? 2 : 0];
pef_container.Magic[1] = kPefMagic[1];
diff --git a/dev/LibCompiler/src/String.cc b/dev/LibCompiler/src/String.cc
index 4ed19be..1ecbd7a 100644
--- a/dev/LibCompiler/src/String.cc
+++ b/dev/LibCompiler/src/String.cc
@@ -14,7 +14,7 @@
* @version 0.2
* @date 2024-01-23
*
- * @copyright Copyright (c) Amlal EL Mahrouss.
+ * @copyright Copyright (c) Amlal EL Mahrouss
*
*/