summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-17 08:30:00 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-17 08:30:00 +0100
commit80de28e3472613e8f6aa8b2730d56b5307f4fb9a (patch)
tree7799e7dfc8b463adba33a87852dd8ea17dec8fa3 /src
parent745bf42b74b6d9b1f6385c785b31a8734cfb4509 (diff)
chore: Improved assembler backends.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src')
-rw-r--r--src/CompilerKit/ck-posix.json3
-rw-r--r--src/CompilerKit/src/Assemblers/Assembler+ARM64.cc2
-rw-r--r--src/CompilerKit/src/Assemblers/Assembler+PowerPC.cc4
-rw-r--r--src/CompilerKit/src/Compilers/CPlusPlusCompiler+AMD64.cc3
4 files changed, 7 insertions, 5 deletions
diff --git a/src/CompilerKit/ck-posix.json b/src/CompilerKit/ck-posix.json
index 6380ae2..f0a4a72 100644
--- a/src/CompilerKit/ck-posix.json
+++ b/src/CompilerKit/ck-posix.json
@@ -20,5 +20,6 @@
"__NECTAR__=202505",
"CK_USE_STRUCTS=1",
"kDistReleaseBranch=$(git rev-parse --abbrev-ref HEAD)-$(uuidgen)"
- ]
+ ],
+ "run_after_build": true
}
diff --git a/src/CompilerKit/src/Assemblers/Assembler+ARM64.cc b/src/CompilerKit/src/Assemblers/Assembler+ARM64.cc
index 3df2b03..f5174aa 100644
--- a/src/CompilerKit/src/Assemblers/Assembler+ARM64.cc
+++ b/src/CompilerKit/src/Assemblers/Assembler+ARM64.cc
@@ -43,7 +43,7 @@
#define kWhite "\e[0;97m"
#define kYellow "\e[0;33m"
-constexpr auto cPowerIPAlignment = 0x1U;
+constexpr auto kArm64Alignment = 0x1U;
static Char kOutputArch = CompilerKit::kPefArchARM64;
diff --git a/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cc b/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cc
index d595731..a61de04 100644
--- a/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cc
+++ b/src/CompilerKit/src/Assemblers/Assembler+PowerPC.cc
@@ -43,7 +43,7 @@
#define kWhite "\e[0;97m"
#define kYellow "\e[0;33m"
-constexpr auto cPowerIPAlignment = 0x4U;
+constexpr auto kPowerIPAlignment = 0x1U;
static Char kOutputArch = CompilerKit::kPefArchPowerPC;
@@ -904,7 +904,7 @@ bool CompilerKit::EncoderPowerPC::WriteLine(std::string line, std::string file)
}
}
- kOrigin += cPowerIPAlignment;
+ kOrigin += kPowerIPAlignment;
break;
}
}
diff --git a/src/CompilerKit/src/Compilers/CPlusPlusCompiler+AMD64.cc b/src/CompilerKit/src/Compilers/CPlusPlusCompiler+AMD64.cc
index 54fbc25..7f92ef6 100644
--- a/src/CompilerKit/src/Compilers/CPlusPlusCompiler+AMD64.cc
+++ b/src/CompilerKit/src/Compilers/CPlusPlusCompiler+AMD64.cc
@@ -820,7 +820,8 @@ NECTI_MODULE(CompilerCPlusPlusAMD64) {
kFrontend = new CompilerFrontendCPlusPlusAMD64();
- CompilerKit::StrongRef<AssemblyCPlusPlusInterfaceAMD64> mntPnt{new AssemblyCPlusPlusInterfaceAMD64()};
+ CompilerKit::StrongRef<AssemblyCPlusPlusInterfaceAMD64> mntPnt{
+ new AssemblyCPlusPlusInterfaceAMD64()};
kAssembler.Mount({mntPnt.Leak()});
CompilerKit::install_signal(SIGSEGV, CompilerKit::Detail::drvi_crash_handler);