diff options
| author | Amlal <amlal@nekernel.org> | 2025-04-25 19:21:22 +0200 |
|---|---|---|
| committer | Amlal <amlal@nekernel.org> | 2025-04-25 19:21:51 +0200 |
| commit | f6b400b80efc64b918c03352e93ec9de4e2369a1 (patch) | |
| tree | 251a82ee3653568ef33ffdc48c83b7f54e370bc1 /dev/LibCompiler/src/AssemblerAMD64.cc | |
| parent | 20042235d1f53ae428aa154e64afdbae5d8d91ad (diff) | |
dev, general: codebase needed refactors and tweaks, for NeKernel's 0.0.2 release.
details:
- things needed to be cleared off, short sighted decisions fixed.
- the inconsistency of certain files have been fixed too.
Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/LibCompiler/src/AssemblerAMD64.cc')
| -rw-r--r-- | dev/LibCompiler/src/AssemblerAMD64.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/dev/LibCompiler/src/AssemblerAMD64.cc b/dev/LibCompiler/src/AssemblerAMD64.cc index a5a7ee5..7dfa36a 100644 --- a/dev/LibCompiler/src/AssemblerAMD64.cc +++ b/dev/LibCompiler/src/AssemblerAMD64.cc @@ -27,7 +27,7 @@ #define kAssemblerPragmaSym '#' #include <LibCompiler/AE.h> -#include <LibCompiler/Backend/amd64.h> +#include <LibCompiler/Backend/Amd64.h> #include <LibCompiler/PEF.h> #include <LibCompiler/Parser.h> #include <algorithm> @@ -52,12 +52,8 @@ #define kStdErr (std::cout << kRed) static char kOutputArch = LibCompiler::kPefArchAMD64; -static Boolean kOutputAsBinary = false; -static UInt32 kErrorLimit = 10; -static UInt32 kAcceptableErrors = 0; - -constexpr auto kIPAlignement = 0x4U; +constexpr auto kIPAlignement = 0x1U; static std::size_t kCounter = 1UL; @@ -67,8 +63,6 @@ static std::vector<std::pair<std::string, std::uintptr_t>> kOriginLabel; /// @brief keep it simple by default. static std::int32_t kRegisterBitWidth = 16U; -static bool kVerbose = false; - static std::vector<i64_byte_t> kAppBytes; static LibCompiler::AERecordHeader kCurrentRecord{ @@ -83,7 +77,7 @@ static const std::string kUndefinedSymbol = ":UndefinedSymbol:"; // \brief forward decl. static bool asm_read_attributes(std::string& line); -#include <AsmUtils.h> +#include <LibCompiler/Detail/AsmUtils.h> ///////////////////////////////////////////////////////////////////////////////////////// |
