Compiling GCC 15.1

Compiling GCC 15.1

During the May Day holiday, I saw that GCC released a new version, so I decided to experience the std after the module refactoring by compiling GCC myself.Environment: Ubuntu 24.041. Download the source codeYou can use the Tsinghua mirror:git clone https://mirrors.tuna.tsinghua.edu.cn/git/gcc.git [Here you can specify the desired folder name]2. Download the necessary dependenciesEnter the source … Read more

Installing and Configuring Redis 7.4.3 on Linux

Installing and Configuring Redis 7.4.3 on Linux

Supported Operating Systems:BigCloud Enterprise Linux For Euler 21.10 LTShttps://mirrors.cmecloud.cn/bclinux/oe21.10/openEuler 24.03 LTS SP1https://www.openeuler.org/en/download/CentOS-8, AlmaLinux, Rocky Linux, etc.1. Download the installation packageDownload link:https://download.redis.io/releases/redis-7.4.3.tar.gzUpload the installation package to the server in the /usr/local/src directory2. Upgrade GCC version# Redis source code compilation requires GCC version 5 or highergcc -v # Check GCC version# If GCC is already a high … Read more

New Features in C++26

New Features in C++26

1. Compilers and C++ Standards As we all know, the C++ standard is constantly evolving, but regardless of the speed of its formulation, there is always a specific date. Before this date, all related documents may be pending or subject to change. The C++ standard is merely a standard; its true implementation in practice requires … Read more

Installing GCC from Source

Installing GCC from Source

My laptop is running CentOS 7 with a version of GCC installed via yum, but this version is too old, so I need to install a newer version of GCC. 1. First, download from the internethttp://mirror.hust.edu.cn/gnu/gcc/ Find the appropriate version and download it. 2. Extract the compressed package # cd /usr/local/# tar -zxvf gcc-6.4.0.tar.gz 3. … Read more

Overview of Embedded Toolchain Tools

Overview of Embedded Toolchain Tools

Introduction This article summarizes and organizes some rules and principles of toolchains, providing a reference for everyone when using toolchains across platforms in the future. It explains how to understand the meaning of <span><span>arm</span></span><span><span>-</span></span><span><span>none</span></span><span><span>-</span></span><span><span>eabi</span></span><span><span>-</span></span><span><span>gcc</span></span> and how to quickly identify which compiler to use. Of course, if there are any inaccuracies in the writing, feel free … Read more

Understanding gcc and g++ Compilers in Linux for Informatics Competitions

Understanding gcc and g++ Compilers in Linux for Informatics Competitions

Students, in the world of Linux, the gcc and g++ compilers are like “super craftsmen” in programming for informatics competitions, capable of “polishing” our written code into instructions that the computer can understand. Next, let’s delve into the usage of these two “super craftsmen”. gcc Compiler (primarily for C language) 1. Basic Compilation: Suppose you … Read more

Usage of -fstack-usage in GCC Toolchain

Usage of -fstack-usage in GCC Toolchain

-fstack-usage is an option provided by GCC (GNU Compiler Collection) that helps developers analyze and optimize the stack memory usage of their code. It generates a stack usage report for each function during the compilation process and saves the information to a .su file. This option is particularly useful for embedded system development, where stack … Read more

LWN: Progress on GCC BPF Support!

LWN: Progress on GCC BPF Support!

Follow us to see more great articles like this! An update on GCC BPF support By Daroc AldenApril 2, 2025LSFMM+BPFGemini-1.5-flash translationhttps://lwn.net/Articles/1015747/ José Marchesi and David Faust opened a session on BPF (Berkeley Packet Filter) at the 2025 Linux Storage, Filesystems, Memory Management, and BPF Summit, where they presented a lengthy discussion on their work to … Read more

Comprehensive Analysis of Static and Dynamic Libraries! Make Your Linux More Efficient and Intelligent!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join our technical exchange QQ group with 1000 members, note 【Public Account】 for faster approval 1. Basic Concepts of Static and Dynamic Libraries A library is a collection of pre-written, reusable code that exists in binary form and can be loaded into memory … Read more

Compiler Optimization Options: Analyzing GCC Optimization Parameters in C Language

Compiler Optimization Options: Analyzing GCC Optimization Parameters in C Language

Compiler Optimization Options: Analyzing GCC Optimization Parameters in C Language In C language development, the choice and use of the compiler are crucial. GCC (GNU Compiler Collection) is one of the most commonly used open-source compilers, providing a range of optimization options to improve the execution efficiency of generated code and reduce compilation time. This … Read more