Tag

C Programming

0 views collected around this technical thread.

IT Services Circle
IT Services Circle
Jun 10, 2025 · Fundamentals

How C Directly Controls Hardware: Registers, Memory, and Inline Assembly Explained

This article explores how the C language enables low‑level hardware control by detailing the roles of CPU registers and physical memory, illustrating direct register access via inline assembly, and explaining pointer usage for memory manipulation, highlighting the trust C places in programmers and the responsibilities it entails.

C Programminghardware controlinline assembly
0 likes · 9 min read
How C Directly Controls Hardware: Registers, Memory, and Inline Assembly Explained
IT Services Circle
IT Services Circle
Jun 8, 2025 · Information Security

Why mmap Shared Memory Is More Dangerous Than malloc – Risks Explained

mmap shared memory lets multiple processes access the same physical memory, which can break process isolation, expose permission misconfigurations like PROT_EXEC, and cause cross‑process crashes or code‑injection attacks, making it far riskier than heap allocations with malloc that remain confined to a single process.

C ProgrammingMMAPmalloc
0 likes · 5 min read
Why mmap Shared Memory Is More Dangerous Than malloc – Risks Explained
IT Services Circle
IT Services Circle
May 30, 2025 · Fundamentals

Why C Language Exam Questions Miss the Point: A Critique of Overly Complex Syntax Tests

The author reflects on a paid tutoring session that revealed university C‑language exam questions focused on obscure syntax tricks, argues that such puzzles hinder real programming skill development, and calls for a shift toward readability, problem‑solving, and practical relevance in computer science education.

C ProgrammingCode readabilityexam critique
0 likes · 4 min read
Why C Language Exam Questions Miss the Point: A Critique of Overly Complex Syntax Tests
Deepin Linux
Deepin Linux
May 28, 2025 · Fundamentals

Understanding glibc malloc: Overview, Mechanisms, and Optimization Techniques

This article explains the role of glibc malloc in dynamic memory allocation, describes its internal data structures and allocation/free algorithms, provides a C code example, and offers practical optimization tips and common pitfalls for safe and efficient memory management.

C Programmingdynamic allocationglibc
0 likes · 13 min read
Understanding glibc malloc: Overview, Mechanisms, and Optimization Techniques
Deepin Linux
Deepin Linux
Mar 10, 2025 · Fundamentals

Understanding Linux Process Creation, Waiting, and Execution: fork, wait, and exec

This article explains how Linux processes are created, managed, and replaced using the fork, wait (including waitpid), and exec system calls, covering their prototypes, return values, copy‑on‑write optimization, and practical C code examples that demonstrate their coordinated use in real‑world scenarios.

C ProgrammingExecfork
0 likes · 25 min read
Understanding Linux Process Creation, Waiting, and Execution: fork, wait, and exec
Deepin Linux
Deepin Linux
Feb 27, 2025 · Fundamentals

Understanding malloc and free: Memory Allocation Mechanisms in C

This article explains how the C functions malloc and free allocate and release memory, covering stack vs heap, the brk and mmap system calls, fragmentation, header metadata, and why both allocation strategies are needed for efficient memory management.

C ProgrammingMMAPbrk
0 likes · 17 min read
Understanding malloc and free: Memory Allocation Mechanisms in C
Deepin Linux
Deepin Linux
Feb 15, 2025 · Fundamentals

Debugging Memory Out-of-Bounds Errors in Linux: Techniques, Tools, and Best Practices

This article explains what memory out-of-bounds errors are, why they are dangerous in Linux C programs, and provides step‑by‑step debugging methods using logs, GDB, Valgrind, core dumps, mprotect, static analysis, and preventive coding practices.

C ProgrammingGDBMemory Debugging
0 likes · 24 min read
Debugging Memory Out-of-Bounds Errors in Linux: Techniques, Tools, and Best Practices
Deepin Linux
Deepin Linux
Jan 20, 2025 · Backend Development

Understanding and Analyzing Linux Core Dumps with GDB

This article explains Linux core dump generation, common causes such as null pointer dereference and array overflow, configuration steps, and demonstrates how to analyze core files using GDB with practical code examples and multi‑threaded case studies.

C ProgrammingCore DumpGDB
0 likes · 24 min read
Understanding and Analyzing Linux Core Dumps with GDB
php中文网 Courses
php中文网 Courses
Nov 27, 2024 · Backend Development

PHP Interpreter Internals: Theory and Hands‑On Implementation in C

This course introduces the background and characteristics of PHP, explains the role and operation of the PHP interpreter, and guides students through building a simple interpreter in C by covering lexical analysis, parsing, virtual machine design, and hands‑on debugging with GDB.

C ProgrammingCompilerInterpreter
0 likes · 3 min read
PHP Interpreter Internals: Theory and Hands‑On Implementation in C
Deepin Linux
Deepin Linux
Oct 30, 2024 · Fundamentals

An Introduction to POSIX Threads (Pthread) and Their Practical Usage in C/C++

This article provides a comprehensive overview of POSIX threads, covering their architecture, creation, synchronization, attributes, scheduling policies, advantages, drawbacks, and real‑world examples such as mutex protection, barrier synchronization, and a cross‑platform network server implementation.

C ProgrammingPOSIXThread Synchronization
0 likes · 21 min read
An Introduction to POSIX Threads (Pthread) and Their Practical Usage in C/C++
Deepin Linux
Deepin Linux
Oct 16, 2024 · Fundamentals

Comprehensive Guide to Using GDB for Debugging C/C++ Programs

This article provides a thorough introduction to the GNU Debugger (GDB), covering its core capabilities, startup methods, compilation requirements, a wide range of debugging techniques—including breakpoints, memory inspection, disassembly, reverse execution—and detailed guidance for multithreaded debugging on Linux systems.

C ProgrammingGDBcommand line
0 likes · 20 min read
Comprehensive Guide to Using GDB for Debugging C/C++ Programs
IT Services Circle
IT Services Circle
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation, Heap Layout, and Fragmentation in C

This article explains how memory allocation works in C, covering the role of malloc, the distinction between code and user data, the compilation and linking process, heap organization, fragmentation, and how the operating system expands the heap when needed.

C ProgrammingOperating Systemfragmentation
0 likes · 6 min read
Understanding Memory Allocation, Heap Layout, and Fragmentation in C
Java Tech Enthusiast
Java Tech Enthusiast
Jun 29, 2024 · Fundamentals

Understanding Memory Allocation in C

The article explains C’s memory allocation, detailing how functions like malloc obtain heap space, the role of system calls such as brk, the distinction between stack and heap, address layout, fragmentation challenges, and practical implications for efficient dynamic memory management.

C ProgrammingOperating SystemStack
0 likes · 5 min read
Understanding Memory Allocation in C
IT Services Circle
IT Services Circle
May 10, 2024 · Fundamentals

The Open‑Source Release of MS‑DOS: History, Versions, and Source Code Overview

The article introduces Microsoft’s recent open‑source release of MS‑DOS, detailing its historical background, version evolution from 1.x to 8.x, the mix of assembly and C code in the repository, and its significance for modern developers interested in operating‑system fundamentals.

C ProgrammingHistoryMS-DOS
0 likes · 7 min read
The Open‑Source Release of MS‑DOS: History, Versions, and Source Code Overview
Deepin Linux
Deepin Linux
Mar 14, 2024 · Fundamentals

Process Concepts, Principles, and Management in Operating Systems

This article explains the definition, characteristics, and structure of processes, describes process creation, termination, and state transitions, outlines various scheduling algorithms, and introduces inter‑process communication mechanisms such as pipes, sockets, shared memory, and message queues, with example C code for Linux.

C ProgrammingIPCOperating System
0 likes · 31 min read
Process Concepts, Principles, and Management in Operating Systems
IT Services Circle
IT Services Circle
Mar 5, 2024 · Fundamentals

Why Adding printf Can Hide Segmentation Faults: A Debugging Tale

An amusing yet instructive narrative shows how a C program that crashes with a segmentation fault can appear to work after inserting a printf, explaining that uninitialized local variables contain leftover stack data and that debugging tools like GDB reveal the true cause.

C ProgrammingGDBdebugging
0 likes · 8 min read
Why Adding printf Can Hide Segmentation Faults: A Debugging Tale
php中文网 Courses
php中文网 Courses
Feb 19, 2024 · Backend Development

Course Overview: Understanding and Implementing a PHP Interpreter in C

This course introduces the background and features of PHP, explains the role and inner workings of the PHP interpreter—including lexical analysis, parsing, and the virtual machine—and guides students to implement a simple interpreter using C, enhancing their programming and problem‑solving skills.

Backend DevelopmentC ProgrammingCompiler
0 likes · 4 min read
Course Overview: Understanding and Implementing a PHP Interpreter in C
Deepin Linux
Deepin Linux
Jan 15, 2024 · Fundamentals

Top 50 Linux Embedded System Interview Questions and Answers

This article compiles 50 high‑frequency interview questions covering Linux embedded systems, including CAN bus, bare‑metal programming, real‑time scheduling, interrupt handling, kernel modules, memory management, and various Linux kernel mechanisms, providing concise explanations and code examples for each topic.

C ProgrammingDriversEmbedded Systems
0 likes · 62 min read
Top 50 Linux Embedded System Interview Questions and Answers
Deepin Linux
Deepin Linux
Dec 3, 2023 · Fundamentals

Comprehensive Guide to Common C Language Interview Questions and Concepts

This article provides a thorough overview of essential C language concepts frequently asked in interviews, covering topics such as language basics, keywords, variables, pointers, arrays, memory management, functions, recursion, data structures, preprocessor directives, and practical code examples to help readers master high‑frequency C interview questions.

C ProgrammingData Structuresinterview preparation
0 likes · 70 min read
Comprehensive Guide to Common C Language Interview Questions and Concepts
Deepin Linux
Deepin Linux
Dec 1, 2023 · Fundamentals

65 Essential Embedded System Interview Questions and Answers

This comprehensive guide presents 65 common embedded‑system interview questions covering topics such as memory layout, stack vs. heap, static and volatile keywords, pointers and references, malloc usage, C vs. C++ differences, compilation stages, process and thread concepts, IPC mechanisms, and networking fundamentals, providing concise explanations and code examples for each.

C ProgrammingEmbedded SystemsInterview Questions
0 likes · 64 min read
65 Essential Embedded System Interview Questions and Answers