Tag

gcc

0 views collected around this technical thread.

Amap Tech
Amap Tech
Jan 26, 2024 · Fundamentals

Debugging a GCC O3 Loop Vectorization Crash: Analysis, Root Cause, and Fix

A segmentation fault in a simple tile‑index copy loop was traced to GCC 9.2’s -O3 loop‑vectorization pass miscalculating structure offsets, and the issue was resolved by disabling -ftree-loop-vectorize or upgrading the compiler, as newer GCC versions and Clang handle the code correctly.

Neonassemblycompiler-bug
0 likes · 26 min read
Debugging a GCC O3 Loop Vectorization Crash: Analysis, Root Cause, and Fix
vivo Internet Technology
vivo Internet Technology
May 25, 2022 · Fundamentals

Improving C/C++ Unit Test Development Efficiency with GCC Plugins

The article proposes a GCC‑plugin‑based tool called TU that automatically extracts AST information from C/C++ source files to generate boundary unit tests, custom cases, and mocks without modifying business code, dramatically reducing the manual effort required for comprehensive test development.

CMockast
0 likes · 11 min read
Improving C/C++ Unit Test Development Efficiency with GCC Plugins
IT Services Circle
IT Services Circle
Mar 20, 2022 · Fundamentals

Understanding Enum Size and Compiler Options in C (gcc)

This article examines how the memory size of C enum types varies with declared value ranges and compiler options such as -fshort-enums, showing default and shortened sizes across different compilers and illustrating the impact of adding larger constant values.

Ccompilerembedded
0 likes · 4 min read
Understanding Enum Size and Compiler Options in C (gcc)
Practical DevOps Architecture
Practical DevOps Architecture
Jan 26, 2022 · Operations

Bash Script for Installing GCC 11.2.0 and Redis 6.2.6 with a Systemd Service

This Bash script automates the installation of GCC 11.2.0 and Redis 6.2.6 on a Linux system, configures Redis settings, creates a systemd service unit, and starts the Redis service, providing a reproducible setup procedure for developers and system administrators.

InstallationLinuxRedis
0 likes · 4 min read
Bash Script for Installing GCC 11.2.0 and Redis 6.2.6 with a Systemd Service
DevOps Engineer
DevOps Engineer
Aug 23, 2021 · Fundamentals

Measuring Code Coverage for C/C++ Projects with Gcov and LCOV

This article explains how to measure code coverage for C/C++ projects using GCC's built‑in Gcov tool and the LCOV utility, covering prerequisite setup, compilation with profiling flags, running tests, generating .gcno/.gcda files, producing .gcov reports, creating HTML visualizations, and cautions against over‑relying on coverage percentages.

Ccode coveragegcc
0 likes · 11 min read
Measuring Code Coverage for C/C++ Projects with Gcov and LCOV
Practical DevOps Architecture
Practical DevOps Architecture
Jun 16, 2021 · Databases

Installing Redis 6.2.4 on Linux with GCC 9 and Systemd Service

This guide walks through upgrading GCC, extracting and installing Redis 6.2.4 on a Linux server, configuring a systemd service, verifying the installation, and provides basic performance tuning tips such as adjusting max connections, memory settings, data compression, and clustering.

DatabaseInstallationLinux
0 likes · 7 min read
Installing Redis 6.2.4 on Linux with GCC 9 and Systemd Service
Laravel Tech Community
Laravel Tech Community
May 26, 2020 · Fundamentals

Porting libgccjit to Windows: Challenges, Licensing, and Practical Insights

libgccjit, an embedded GCC JIT library, has been experimentally ported to Windows, with developers overcoming libtool and Automake differences, handling DLL creation, and noting GPLv3 licensing implications, demonstrating the feasibility of GCC JIT on Windows despite limited adoption prospects.

GPLv3JITWindows
0 likes · 2 min read
Porting libgccjit to Windows: Challenges, Licensing, and Practical Insights
Tencent Database Technology
Tencent Database Technology
Dec 20, 2018 · Fundamentals

Unexpected Behavior with -O2 Optimization Due to Strict Aliasing Violations in C++

The article explains why a C++ program produces different outputs with and without the -O2 optimization flag, tracing the issue to strict aliasing violations caused by type‑punning pointer casts, and shows how disabling -fstrict-aliasing or using -fno‑strict‑aliasing resolves the problem.

CCompiler OptimizationOptimization Flags
0 likes · 8 min read
Unexpected Behavior with -O2 Optimization Due to Strict Aliasing Violations in C++