Tag

Low-level programming

0 views collected around this technical thread.

Deepin Linux
Deepin Linux
Jan 3, 2025 · Fundamentals

Understanding the Linux Kernel Exception Table __ex_table and Its Role in Exception Handling

This article provides a comprehensive overview of the Linux kernel's exception handling mechanism, focusing on the __ex_table data structure, its creation via macros, how the kernel locates and executes fix‑up code, and the supporting APIs and sorting process that ensure reliable recovery from faults.

Exception HandlingLinux KernelLow-level programming
0 likes · 21 min read
Understanding the Linux Kernel Exception Table __ex_table and Its Role in Exception Handling
Deepin Linux
Deepin Linux
Dec 9, 2024 · Fundamentals

Comprehensive Guide to x86 Assembly Language and GNU Syntax

This guide provides a thorough introduction to x86 assembly language, covering GNU syntax, CPU architecture, registers, instruction formats, data types, memory models, and practical examples with NASM and GNU as, enabling readers to write efficient low‑level code and deepen their understanding of computer systems.

GNULow-level programmingassembly
0 likes · 30 min read
Comprehensive Guide to x86 Assembly Language and GNU Syntax
IT Services Circle
IT Services Circle
Oct 27, 2024 · Fundamentals

Why Assembly Language Is the Ultimate Programming Tool

The article explains how assembly language serves as the foundational layer beneath all high‑level languages, illustrating its essential role in translating code to machine instructions, and argues that understanding assembly deepens comprehension of computer architecture despite its rare direct use today.

Computer ArchitectureLow-level programmingassembly
0 likes · 8 min read
Why Assembly Language Is the Ultimate Programming Tool
Java Tech Enthusiast
Java Tech Enthusiast
Sep 1, 2024 · Fundamentals

Introduction to x86 Assembly Language: Registers, Memory Model, and Stack Operations

This article introduces x86 assembly language, explaining its historical origins, the role of CPU registers such as EAX and ESP, the heap and downward‑growing stack memory models, and demonstrates basic stack‑frame operations like push, call, mov, add, pop, and ret through a simple compiled example.

CPULow-level programmingStack
0 likes · 13 min read
Introduction to x86 Assembly Language: Registers, Memory Model, and Stack Operations
IT Services Circle
IT Services Circle
Jan 14, 2024 · Fundamentals

Implementing an Odd/Even Checker with 4 Billion If Statements: From C to Assembly and Performance Limits

The article explores how a developer generated billions of if‑statements in C to decide odd or even for 32‑bit numbers, scaling the approach with Python‑generated code, custom assembly, memory‑mapped binaries, and discusses the practical limits and performance of such an extreme solution.

C++Low-level programmingalgorithm
0 likes · 14 min read
Implementing an Odd/Even Checker with 4 Billion If Statements: From C to Assembly and Performance Limits
IT Services Circle
IT Services Circle
Oct 25, 2023 · Fundamentals

Understanding Memory, Variables, and Pointers in a Minimal 8‑Byte Environment

The article explains how to read and write a tiny 8‑byte memory without an operating system or high‑level language, introducing the concepts of memory addresses, store/load instructions, variables, references, pointers, indirect addressing, and their role in building data structures like linked lists.

Low-level programmingVariablesassembly
0 likes · 8 min read
Understanding Memory, Variables, and Pointers in a Minimal 8‑Byte Environment
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 5, 2023 · Backend Development

Mastering Java Unsafe: Low-Level Memory Tricks and Atomic Operations

This article introduces Java's sun.misc.Unsafe class, explains its memory, CAS, thread, class, and object manipulation APIs, shows how to obtain an Unsafe instance, and provides practical code examples for low‑level operations such as field offsets, compare‑and‑swap, object allocation, and custom atomic counters.

JavaLow-level programmingUnsafe
0 likes · 9 min read
Mastering Java Unsafe: Low-Level Memory Tricks and Atomic Operations
IT Services Circle
IT Services Circle
Jun 26, 2023 · Fundamentals

Why Modern Programmers Rarely Consider the CPU: Reflections on Low‑Level Computing

The article reflects on why modern programmers seldom think about the CPU, tracing the historical shift from assembly to high‑level languages, and argues that understanding low‑level architecture, registers, and memory remains essential despite the growing abstraction layers in software development.

CPUComputer ArchitectureLow-level programming
0 likes · 6 min read
Why Modern Programmers Rarely Consider the CPU: Reflections on Low‑Level Computing
Refining Core Development Skills
Refining Core Development Skills
May 23, 2023 · Fundamentals

Understanding Computer Systems: The Secrets of the Basics

This book explores fundamental computer science concepts including programming language execution, compiler operations, memory allocation mechanisms, and system architecture through accessible explanations and practical examples.

Computer ScienceLow-level programmingMemory Management
0 likes · 3 min read
Understanding Computer Systems: The Secrets of the Basics
Tencent Cloud Developer
Tencent Cloud Developer
Aug 8, 2022 · Fundamentals

Deep Dive into Function Call Implementation: From Assembly to CPU Registers

This article thoroughly explains low‑level function call implementation, covering Intel and AT&T assembly syntax, the evolution of CPU registers from 16‑bit to 64‑bit x86, caller‑ and callee‑saved conventions, stack‑based to register‑based parameter passing, stack frame setup, and assembly representations of control structures.

CPU architectureCPU registersLow-level programming
0 likes · 23 min read
Deep Dive into Function Call Implementation: From Assembly to CPU Registers
Code Ape Tech Column
Code Ape Tech Column
Jun 1, 2022 · Fundamentals

Understanding sun.misc.Unsafe: Construction, Core Functions, and Practical Use Cases

This article explains the purpose, construction, and key functionalities of Java's sun.misc.Unsafe class, covering memory management, object allocation, class definition, offset handling, array operations, thread scheduling, CAS, and memory fences, while also showing how to obtain an Unsafe instance via reflection.

JavaLow-level programmingMemory Management
0 likes · 11 min read
Understanding sun.misc.Unsafe: Construction, Core Functions, and Practical Use Cases
TAL Education Technology
TAL Education Technology
May 19, 2022 · Fundamentals

Learning 8086 Assembly Language: Environment Setup, Sample Program, Registers, Instruction Classification, and Execution Mechanism

This tutorial guides readers through installing a DOS environment, writing and analyzing a simple 8086 assembly program, understanding pseudo‑instructions, registers, instruction categories, execution flow, and data addressing, providing links and code examples for hands‑on learning.

8086Instruction setLow-level programming
0 likes · 5 min read
Learning 8086 Assembly Language: Environment Setup, Sample Program, Registers, Instruction Classification, and Execution Mechanism
IT Services Circle
IT Services Circle
Apr 26, 2022 · Fundamentals

Understanding x86 Assembly Direct and Indirect Addressing and the LOOP Instruction

This article explains x86 assembly direct and indirect memory addressing, the meaning of address length, how to use registers like BX for indexed access, and demonstrates loop‑based multiplication with detailed code examples and execution analysis.

LoopLow-level programmingaddressing
0 likes · 11 min read
Understanding x86 Assembly Direct and Indirect Addressing and the LOOP Instruction
Zhuanzhuan Tech
Zhuanzhuan Tech
Mar 28, 2022 · Backend Development

Understanding Java's sun.misc.Unsafe: Construction, Core Functions, and Usage

This article explains the purpose, construction, and most important capabilities of Java's sun.misc.Unsafe class—including memory management, object instantiation, class loading, offset handling, array operations, thread scheduling, CAS, and memory fences—while providing code examples and practical guidance for developers.

JavaLow-level programmingMemory Management
0 likes · 12 min read
Understanding Java's sun.misc.Unsafe: Construction, Core Functions, and Usage
Sohu Tech Products
Sohu Tech Products
Jun 2, 2021 · Fundamentals

Low‑Level Atomic Operations (SE‑0282) – Swift Atomics Overview

This article presents a comprehensive translation of the Swift Evolution proposal SE‑0282, detailing the design and implementation of low‑level atomic operations, memory orderings, and related types such as UnsafeAtomic and UnsafeAtomicLazyReference, providing examples and discussing integration with Swift’s concurrency model.

Low-level programmingSwiftatomic operations
0 likes · 57 min read
Low‑Level Atomic Operations (SE‑0282) – Swift Atomics Overview
360 Tech Engineering
360 Tech Engineering
Jan 9, 2020 · Fundamentals

Function Call Mechanics and Assembly Implementations of memcpy and memset in glibc

This article explains CPU registers, stack layout, function call conventions, and provides detailed explanations of how glibc implements memcpy and memset both in C and in low‑level assembly, including code snippets and the handling of remaining bytes.

Function CallLow-level programmingassembly
0 likes · 8 min read
Function Call Mechanics and Assembly Implementations of memcpy and memset in glibc
Architecture Digest
Architecture Digest
Feb 10, 2018 · Fundamentals

A Beginner's Guide to x86 Assembly Language: Registers, Memory Model, and Instruction Examples

This article introduces the fundamentals of x86 assembly language, explaining why low‑level code is needed, the history of assembly, CPU registers, the heap and stack memory models, and walks through a complete example with detailed explanations of each assembly instruction.

CPUInstruction setLow-level programming
0 likes · 14 min read
A Beginner's Guide to x86 Assembly Language: Registers, Memory Model, and Instruction Examples