Directly Instructing GCC to Link a Library Statically

Directly Instructing GCC to Link a Library Statically

It feels strange to me to use <span>-Wl,-Bstatic</span> in order to tell <span>gcc</span> which libraries I want to link with statically. After all, I’m telling gcc directly all other information about linking with libraries (<span>-Ldir, -llibname</span>). Is it possible to tell the <span>gcc</span> driver directly which libraries should be linked statically? Clarification: I know that … Read more

Compiling Fluent UDF Using GCC

Compiling Fluent UDF Using GCC

The latest versions of Fluent (such as Fluent 2025R1) come with a built-in clang compiler, allowing UDF compilation without the need to install Visual Studio. However, using GCC for UDF compilation has several advantages, including: (1) GCC compiles quickly and provides detailed debugging information. (2) It is convenient to compile and debug code using tools … Read more

What is the US GCC Certification?

What is the US GCC Certification?

What is the GCC certificate? The US GCC (General Certificate of Conformity) is a certificate that proves that non-child (general use) products comply with all applicable consumer product safety rules. This certificate is a written declaration issued by the manufacturer or importer based on a reasonable testing plan, indicating that their products meet specific safety … Read more

Exploring the Future: The Pinnacle Showdown Between GCC and LLVM in Rust Code Compilation

Exploring the Future: The Pinnacle Showdown Between GCC and LLVM in Rust Code Compilation

The Rust compiler is renowned for its ability to optimize code performance and manage memory, thanks to its borrow checkers. Rust code is compiled using the official compiler <span>rustc</span>, which utilizes LLVM as its backend to optimize and convert high-level Rust code into low-level machine code. However, a recent alternative has emerged called gccrs, which … Read more

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