How to Compile GCC Yourself

How to Compile GCC Yourself

Download GCC ● https://ftp.gnu.org/gnu/gcc/ ● Select a target version to download Compilation Commands # Centos yum groupinstall "Development Tools" # Ubuntu sudo apt install build-essential # Avoid compilation errors unset LIBRARY_PATH # Build wget https://ftp.gnu.org/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.gz –no-check-certificate tar -zvxf gcc-15.1.0.tar.gz cd gcc-15.1.0 ./contrib/download_prerequisites mkdir build cd build/ ../configure –enable-checking=release –prefix=/usr/local/gcc-15.1.0 –enable-shared –enable-static –enable-languages=c,c++ –disable-multilib # Install … Read more

An Overview of GCC Compiler Optimization

An Overview of GCC Compiler Optimization

GCC (GNU Compiler Collection) is one of the most commonly used C/C++ compilers on Linux, supporting multiple languages and platforms. This article introduces the working principles of GCC, commonly used commands, optimization options, and best practices based on relevant materials. Differences and Connections Between gcc and g++ gcc processes source files in C language by … Read more

Dev C++ 6.5 Installation Package and Detailed Installation Guide

Dev C++ 6.5 Installation Package and Detailed Installation Guide

1 Basic Information Name: Dev C++ 6.5 Size: 44M Installation Environment: Windows 7 and above 64-bit operating system Baidu Cloud Link: https://pan.baidu.com/s/1QRul-XzMvG4Lb57QxHExCw?pwd=6666 Extraction Code: 6666 Quark Cloud Link: https://pan.quark.cn/s/128687e0d1bb 2 Software Introduction Dev-C++ 6.5 is an integrated development environment (IDE) for C/C++ developers, designed specifically for Windows users. It supports the GCC compiler and provides … Read more

Installing GCC

Installing GCC

Log in to the GCC download page: https://gcc.gnu.org/ Click on the Mirrors in the Download section on the right Select a suitable mirror address Select releases/ Scroll down to find and enter the gcc-15.2.0/ directory Click to download gcc-15.2.0.tar.xz (or gcc-15.2.0.tar.gz) Upload the gcc-15.2.0.tar.xz file to the server $ ls gcc-15.2.0.tar.xz Use the following command … Read more

A Comprehensive Guide to GCC/G++ Compilation

A Comprehensive Guide to GCC/G++ Compilation

“Introduction: What happens between a line of C++ code and an executable binary file? Today, we press the slow-motion button and follow the steps of GCC to explore this process.” Hello, C++ developers. When developing C++ in a Linux environment, GCC (GNU Compiler Collection) is almost an unavoidable king. Most of us have probably typed … Read more

From Keil to GCC: Who Handles Memory Initialization During Embedded Program Startup?

From Keil to GCC: Who Handles Memory Initialization During Embedded Program Startup?

In embedded development, many engineers often wonder: after powering on the program, how are global and static variables initialized? Is the underlying memory operation logic the same from Keil MDK-ARM to the GCC cross-toolchain? Today, we will break down this core issue and understand the complete process from chip power-up to the execution of the … Read more

Gulf Chessboard: GCC Multilateral Free Trade Game, Japan’s Outreach and China’s Response

Gulf Chessboard: GCC Multilateral Free Trade Game, Japan's Outreach and China's Response

Against the backdrop of global trade multipolarization and intensified geopolitical competition, the Gulf Cooperation Council (GCC) is frequently appearing at the free trade/FTA negotiation table. With the historic resumption of negotiations with the European Union and active interactions with China and Japan, the GCC is striving to break through through institutional cooperation, forcing all parties … Read more

The Mystery of C++ Program Compilation (Part 3)

The Mystery of C++ Program Compilation (Part 3)

What really happens internally when we write a program in an IDE and click the compile button? Why does it generate an executable file? What steps are involved in this process? Is it simple or complex? In this article, we will clarify these matters. First, it is important to clarify that compilation is just a … Read more

Detailed Explanation of Linux Program Compilation Process

Detailed Explanation of Linux Program Compilation Process

↓Recommended Follow↓ Everyone knows that computer programming languages are usually divided into three categories: machine language, assembly language, and high-level language. High-level languages need to be translated into machine language to be executed, and there are two ways to translate: compiled and interpreted. Therefore, we generally divide high-level languages into two main categories: compiled languages, … Read more

CMake Tutorial 1: What Is CMake?

CMake Tutorial 1: What Is CMake?

In the past year, my work has been focused on native development, as I have spent most of my time working with cocos2dx. Therefore, future articles will lean towards C++. Understanding CMake Before introducing CMake, it’s necessary to cover some basic computer science concepts to better understand what CMake is. How to Compile a Program … Read more