Liangxu Linux
Liangxu Linux
Feb 10, 2024 · Operations

Compile C Code On‑the‑Fly Using a Shell Here Document

This article explains how to use the shell's Here Document feature to embed C source code directly in a script, pipe it to gcc with appropriate flags, and instantly compile and run a hello‑world executable without separate source files.

C CompilerGCChere-document
0 likes · 3 min read
Compile C Code On‑the‑Fly Using a Shell Here Document
Liangxu Linux
Liangxu Linux
Dec 24, 2023 · Fundamentals

How a 500‑Line C Compiler Self‑Compiles: Inside the C4 Project

This article demystifies the C4 compiler—a minimalist C compiler written in just 528 lines and four functions—by explaining its architecture, showing a Hello World build, demonstrating self‑hosting, and detailing the supported language subset, bytecode format, and unique implementation tricks.

C CompilerC4bytecode
0 likes · 11 min read
How a 500‑Line C Compiler Self‑Compiles: Inside the C4 Project
Liangxu Linux
Liangxu Linux
Feb 4, 2023 · Fundamentals

Key Differences Between Unix and Linux Every Developer Should Know

Although Linux is often called a Unix‑like system, it differs in several fundamental ways such as the default shell, command‑line option styles, make utility capabilities, C compiler defaults, GNU tool availability, and the trademarked UNIX designation, all of which affect portability and script writing.

C CompilerGNULinux
0 likes · 6 min read
Key Differences Between Unix and Linux Every Developer Should Know
Open Source Linux
Open Source Linux
Sep 28, 2022 · Fundamentals

What Really Sets Linux Apart from Unix? Key Differences Explained

This article outlines the fundamental differences between Linux and Unix, covering topics such as the non‑standard Bash shell, the absence of long‑option support in Unix, variations in Make and C compilers, the distinction between GNU and Linux, and the trademarked UNIX name, providing a concise guide for developers navigating these operating systems.

C CompilerLinuxMake
0 likes · 6 min read
What Really Sets Linux Apart from Unix? Key Differences Explained