Mastering GCC and Makefile: A Comprehensive Build System Guide

GCC Compiler Fundamentals The GNU Compiler Collection (GCC) serves as the primary compilation toolchain on Linux systems. While Windows development typically relies on integrated IDEs like Visual Studio, Linux development requires understanding the command-line compilation process. The GCC compilation pipeline consists of four distinct stages ...

Posted on Fri, 06 Nov 2026 16:32:52 +0000 by bob2588

Compiling and Installing MySQL from Source on Linux

Prerequisites This process assumes you have downloaded mysql-5.5.10.tar.gz and cmake-2.8.4.tar.gz source packages. Install CMake MySQL 5.5+ requires CMake for compilation. tar -zxvf cmake-2.8.4.tar.gz cd cmake-2.8.4 ./configure make sudo make install Create Installation and Data Directories sudo mkdir -p /usr/local/mysql sudo mkdir -p /usr/loc ...

Posted on Thu, 29 Oct 2026 16:40:58 +0000 by UpcomingPhpDev

Static Variables in PHP 7 Internals

In PHP, regular local variables are allocated on the zend_execute_data structure. Each time a zend_op_array is executed, a new zend_execute_data instance is created. Local variables are allocated at the start of execution and freed when execution ends—this defines thier lifetime. Static variables are an exception: they persist beyond function e ...

Posted on Thu, 01 Oct 2026 17:03:29 +0000 by ianr

AOSP 8.1.0_r1 Compilation: Environment Setup and Troubleshooting

Acquiring the Source Code The Android Open Source Project (AOSP) codebase is hosted by Google. For users in regions with restricted access, domestic mirrors such as Tsinghua University (https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/) or USTC (https://mirrors.ustc.edu.cn/aosp/) are recommended alternatives. Source retrieval requires the repo too ...

Posted on Wed, 30 Sep 2026 16:17:08 +0000 by ShawnD

Mastering Makefiles for Efficient Linux Compilation

Introduction to Makefiles A Makefile defines a set of rules to specify how files should be compiled. The primary advantage of using Makefiles is "automated compilation". Once properly configured, a simple make command can compile an entire project automatically, significantly improving software development efficiency. Make primarily addresses ...

Posted on Wed, 23 Sep 2026 16:11:22 +0000 by Bourgeois

Setting Up Redis, MySQL, and Nginx on Ubuntu 20.04

Installing Redis from Source To deploy Redis, download the source code from the official Redis website. Extract the archive and prepare the build enviroment: tar -xvf redis-x.x.x.tar.gz cd redis-x.x.x sudo apt update sudo apt install build-essential pkg-config Compile the source code using the provided makefile: make MALLOC=libc sudo make inst ...

Posted on Thu, 03 Sep 2026 16:49:47 +0000 by mforan

From Source to Executable: The Translation Pipeline Explained

The historical development of compilers and programming languages reveals a fascinating paradox: which came first, the language or the compiler? Early computers relied on punch cards for input, which was highly inefficient. The first programming languages, such as assembly, emerged to simplify machine communication. However, the initial compile ...

Posted on Mon, 24 Aug 2026 16:10:20 +0000 by idnoble

Compiling libtiff Third-Party Component

Backgorund The libtiff component in the stxdio_wrapper repository includes pre-built static library files. Since there were no existing build scripts, this guide explores creating a compilation script for libtiff. Compilation Process 1. Source Repository The source code can be found at: https://github.com/Hexagon-HTC/libtiff/tags 2. Build Scrip ...

Posted on Sat, 22 Aug 2026 16:42:34 +0000 by kris81

Understanding the C Compilation, Assembly, and Linking Pipeline

The generation of an executable binary from C source code involves multiple stages: preprocessing, compilation, assembly, and linking. Each phase transforms the program representation closer to machine code while resolving references and organizing memory layout. Preprocessing handles directives such as macro expansion, conditional compilation ...

Posted on Wed, 12 Aug 2026 16:26:31 +0000 by LAX

Installing and Removing Nginx on CentOS 6.5 via YUM and Source Compilation

Installing Nginx with YUM Ensure the system repositories are up to date: yum update -y Installl Nginx directly from the EPEL repository (if not already enabled): yum install -y epel-release yum install -y nginx Enable and start the service: chkconfig nginx on service nginx start Allow HTTP traffic through the firewall: iptables -I INPUT -p t ...

Posted on Mon, 27 Jul 2026 16:01:11 +0000 by gateway69