summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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
-rw-r--r--doc/ARCH.drawio28
-rw-r--r--doc/HAVP.txt (renamed from doc/HAVP DSP.txt)0
-rw-r--r--doc/NOTICE.txt (renamed from doc/Notice.txt)0
-rw-r--r--doc/RISC.txt (renamed from doc/RISC CPU.txt)0
-rw-r--r--doc/SPECS_ASM.txt (renamed from doc/ASM Specs.txt)0
-rw-r--r--doc/SPECS_SOFT.md (renamed from doc/SPECIFICATION.md)0
-rwxr-xr-xmake_docs.sh2
-rw-r--r--tools/asm.cc21
-rw-r--r--tools/necc.cc2
19 files changed, 58 insertions, 27 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
*
*/
diff --git a/doc/ARCH.drawio b/doc/ARCH.drawio
new file mode 100644
index 0000000..3e3731a
--- /dev/null
+++ b/doc/ARCH.drawio
@@ -0,0 +1,28 @@
+<mxfile host="65bd71144e">
+ <diagram id="WNTRl8o_nSE3Z-uStzDZ" name="Page-1">
+ <mxGraphModel dx="1144" dy="698" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="0">
+ <root>
+ <mxCell id="0"/>
+ <mxCell id="1" parent="0"/>
+ <mxCell id="5" style="edgeStyle=none;html=1;exitX=0.5;exitY=0;exitDx=0;exitDy=0;entryX=0.25;entryY=1;entryDx=0;entryDy=0;" edge="1" parent="1" source="3" target="4">
+ <mxGeometry relative="1" as="geometry"/>
+ </mxCell>
+ <mxCell id="3" value="DLL" style="shape=image;html=1;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;image=img/clipart/Gear_128x128.png" vertex="1" parent="1">
+ <mxGeometry x="400" y="310" width="50" height="60" as="geometry"/>
+ </mxCell>
+ <mxCell id="6" style="edgeStyle=none;html=1;exitX=0.75;exitY=1;exitDx=0;exitDy=0;entryX=0.5;entryY=0;entryDx=0;entryDy=0;" edge="1" parent="1" source="4" target="3">
+ <mxGeometry relative="1" as="geometry"/>
+ </mxCell>
+ <mxCell id="4" value="Frontend" style="label;whiteSpace=wrap;html=1;image=img/clipart/Gear_128x128.png" vertex="1" parent="1">
+ <mxGeometry x="360" y="130" width="135" height="60" as="geometry"/>
+ </mxCell>
+ <mxCell id="7" value="LibCDyn" style="text;strokeColor=none;fillColor=none;html=1;fontSize=24;fontStyle=1;verticalAlign=middle;align=center;" vertex="1" parent="1">
+ <mxGeometry x="470" y="320" width="100" height="40" as="geometry"/>
+ </mxCell>
+ <mxCell id="8" value="Tool" style="text;strokeColor=none;fillColor=none;html=1;fontSize=24;fontStyle=1;verticalAlign=middle;align=center;" vertex="1" parent="1">
+ <mxGeometry x="510" y="140" width="100" height="40" as="geometry"/>
+ </mxCell>
+ </root>
+ </mxGraphModel>
+ </diagram>
+</mxfile> \ No newline at end of file
diff --git a/doc/HAVP DSP.txt b/doc/HAVP.txt
index 12fcec5..12fcec5 100644
--- a/doc/HAVP DSP.txt
+++ b/doc/HAVP.txt
diff --git a/doc/Notice.txt b/doc/NOTICE.txt
index 23691da..23691da 100644
--- a/doc/Notice.txt
+++ b/doc/NOTICE.txt
diff --git a/doc/RISC CPU.txt b/doc/RISC.txt
index e17b494..e17b494 100644
--- a/doc/RISC CPU.txt
+++ b/doc/RISC.txt
diff --git a/doc/ASM Specs.txt b/doc/SPECS_ASM.txt
index a0c42bf..a0c42bf 100644
--- a/doc/ASM Specs.txt
+++ b/doc/SPECS_ASM.txt
diff --git a/doc/SPECIFICATION.md b/doc/SPECS_SOFT.md
index 04c9c55..04c9c55 100644
--- a/doc/SPECIFICATION.md
+++ b/doc/SPECS_SOFT.md
diff --git a/make_docs.sh b/make_docs.sh
index 15213dd..134642c 100755
--- a/make_docs.sh
+++ b/make_docs.sh
@@ -2,4 +2,4 @@
mkdir -p html
-XSDocgen --source ./dev/ --output ./html --undocumented --project-name "NE CoreFoundation" --enable-c++ --project-copyright "Amlal EL Mahrouss. &copy; %Y - All rights Reserved" --project-version "930.2024.1" --company-name "Amlal EL Mahrouss."
+XSDocgen --source ./dev/ --output ./html --undocumented --project-name "NE CoreFoundation" --enable-c++ --project-copyright "Amlal EL Mahrouss &copy; %Y - All rights Reserved" --project-version "930.2024.1" --company-name "Amlal EL Mahrouss"
diff --git a/tools/asm.cc b/tools/asm.cc
index 7f1fc54..9645ca7 100644
--- a/tools/asm.cc
+++ b/tools/asm.cc
@@ -19,19 +19,22 @@ LC_IMPORT_C int AssemblerMainARM64(int argc, char const* argv[]);
LC_IMPORT_C int AssemblerMain64x0(int argc, char const* argv[]);
LC_IMPORT_C int AssemblerMainAMD64(int argc, char const* argv[]);
+enum AsmKind : Int32
+{
+ kX64Assembler,
+ k64X0Assembler,
+ kPOWER64Assembler,
+ kARM64Assembler,
+ kAssemblerCount,
+};
+
int main(int argc, char const* argv[])
{
std::vector<const char*> arg_vec_cstr;
arg_vec_cstr.push_back(argv[0]);
- enum
- {
- kX64Assembler,
- k64X0Assembler,
- kPOWER64Assembler,
- kARM64Assembler,
- kInvalidAssembler
- } asm_type = kInvalidAssembler;
+ const Int32 kInvalidAssembler = -1;
+ Int32 asm_type = kInvalidAssembler;
for (size_t index_arg = 1; index_arg < argc; ++index_arg)
{
@@ -39,7 +42,7 @@ int main(int argc, char const* argv[])
{
std::printf("asm.exe: Frontend Assembler (64x0, power64, arm64, x64).\n");
std::printf("asm.exe: Version: %s, Release: %s.\n", kDistVersion, kDistRelease);
- std::printf("asm.exe: Designed by Amlal EL Mahrouss., Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved.\n");
+ std::printf("asm.exe: Designed by Amlal EL Mahrouss, Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved.\n");
std::printf("libCCDyn.dylib: Designed by Amlal EL Mahrouss, Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved.\n");
return 0;
diff --git a/tools/necc.cc b/tools/necc.cc
index 16cc39c..62c4b75 100644
--- a/tools/necc.cc
+++ b/tools/necc.cc
@@ -25,7 +25,7 @@ int main(int argc, char const* argv[])
{
std::printf("necc: Frontend C++ Compiler.\n");
std::printf("necc: Version: %s, Release: %s.\n", kDistVersion, kDistRelease);
- std::printf("necc: Designed by Amlal EL Mahrouss., Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved.\n");
+ std::printf("necc: Designed by Amlal EL Mahrouss, Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved.\n");
std::printf("libCCDyn.dylib: Designed by Amlal EL Mahrouss, Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved.\n");
return 0;