Language
Aug 7, 2026
Object File Generation Creating Relocatable Object Files - Using Libraries (e.g., libelf, LLD) to Assist
Object File Generation : Creating Relocatable Object Files -> Using Libraries (e.g., libelf, LLD) to Assist IntroductionDeveloping a complete assembler capable of producing valid relocatable object files compliant with ELF specifications involves significant complexity. To reduce development time and improve…
19 reads
0 today
Read article
Performance & Systems
Aug 7, 2026
Object File Generation Creating Relocatable Object Files - ELF32 vs ELF64 Differences
Object File Generation : Creating Relocatable Object Files -> ELF32 vs ELF64 Differences 1. IntroductionWhen designing an assembler targeting x86-64 architectures, understanding the distinctions between the 32-bit ELF (ELF32) and 64-bit ELF (ELF64) formats is essential for generating correct relocatable object files.…
23 reads
0 today
Read article
Performance & Systems
Aug 7, 2026
Object File Generation ELF Format Deep Dive - Section Headers .text, .data, .bss
Object File Generation: ELF Format Deep Dive -> Section Headers: .text, .data, .bssIn the ELF object file format, section headers define the organization of the binary’s data into logically distinct regions. Each section header provides metadata about a region of the file or memory, including its size, location,…
71 reads
2 today
Read article
Performance & Systems
Aug 7, 2026
Architecture of an Assembler Data Structures in Assembler Design - Relocation Table
Architecture of an Assembler: Data Structures in Assembler Design -> Relocation TableThe relocation table is a fundamental data structure in assembler and linker design, responsible for recording references to symbols or addresses that cannot be resolved at assembly time. These relocations are deferred until the…
58 reads
1 today
Read article
Other Technology
Aug 7, 2026
Architecture of an Assembler Data Structures in Assembler Design - Instruction Table
Architecture of an Assembler: Data Structures in Assembler Design -> Instruction TableThe instruction table is the core reference structure that an assembler uses to map mnemonic representations of machine instructions to their corresponding binary encodings, operand patterns, and encoding rules. It acts as the bridge…
27 reads
0 today
Read article
Performance & Systems
Aug 7, 2026
Architecture of an Assembler Data Structures in Assembler Design - Symbol Table
Architecture of an Assembler: Data Structures in Assembler Design -> Symbol TableThe symbol table is one of the core data structures in any assembler. It serves as a central repository for all named identifiers encountered during the assembly process, including labels, variables, macros, constants, and external…
20 reads
0 today
Read article
Performance & Systems
Aug 7, 2026
Architecture of an Assembler Lexical analysis and tokenizing
Architecture of an Assembler: Lexical analysis and tokenizingAfter preprocessing completes macro expansion, includes, and directive handling, the assembler proceeds to lexical analysis, also known as tokenizing. This phase is essential to convert the raw text of the assembly source code into structured elements called…
18 reads
0 today
Read article
Other Technology
Aug 7, 2026
Architecture of an Assembler Code generation converting tokens to binary
Architecture of an Assembler: Code generation: converting tokens to binaryThe code generation phase is the assembler’s core responsibility—translating the parsed instructions and directives into raw machine code. This involves converting high-level symbolic tokens into binary encodings that conform precisely to the…
18 reads
0 today
Read article
Other Technology
Aug 7, 2026
Architecture of an Assembler Symbol resolution and backpatching
Architecture of an Assembler: Symbol resolution and backpatchingAfter code generation has constructed the initial binary stream, an assembler must resolve all symbolic references to their actual numeric addresses or offsets. This is the symbol resolution phase, which ensures correctness of jumps, calls, data accesses,…
49 reads
0 today
Read article