Mastering GCC/G++/GDB: From Compilation to Debugging

Mastering GCC/G++/GDB: From Compilation to Debugging

Introduction: GCC/G++/GDB, The Programmer’s “Magic Wand” Hello everyone, today we will discuss how to compile and debug C/C++ programs. When it comes to GCC/G++, many beginners might first think: “Isn’t this just a compiler? Don’t you just write gcc main.c and hit enter?” But when compilation errors occur, they realize their understanding is as shallow … Read more

Differences and Connections Between CMake, NMake, and QMake

Differences and Connections Between CMake, NMake, and QMake

This article is reproduced from Zhihu, the link and author information are as follows. Author: Hui Chang Ge Link: https://www.zhihu.com/question/27455963/answer/89770919 Source: Zhihu Copyright belongs to the author. For commercial reproduction, please contact the author for authorization, and for non-commercial reproduction, please indicate the source. I often forget these concepts, even after reading them several times, … Read more

Differences Between GCC and G++: A Comprehensive Guide

Differences Between GCC and G++: A Comprehensive Guide

GCC (GNU Compiler Collection) and G++ are both compilers developed by GNU, but they have some functional differences. Although they belong to the same toolset, the main difference lies in the programming languages they support and how they handle the compilation of source code. Here is a detailed introduction and comparison of GCC and G++. … Read more

Detailed Steps to Upgrade GCC Version on Linux 8

Detailed Steps to Upgrade GCC Version on Linux 8

Click the blue text above to follow Alen 1 Demonstration Environment The environment for this demonstration is: Red Hat Enterprise Linux release 8.10 (Ootpa) 2 Check Current GCC Version Execute the following command to check the current GCC version: [root@sourcecode ~]# gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure … Read more

Understanding GCC Certification in the USA

Understanding GCC Certification in the USA

GCC stands for General Certificate of Conformity. It is a written general conformity certificate that manufacturers and importers of general use products (i.e., non-children’s products) must issue based on reasonable testing, as stipulated in the U.S. Consumer Product Safety Improvement Act (CPSIA). Manufacturers and importers of general use products subject to consumer product safety rules … Read more

The Secrets of GCC/MSVC Search Paths

The Secrets of GCC/MSVC Search Paths

If this article helps you, feel free to follow Programmer Xiao Mi . Wishing you progress in your programming journey! Different paths may contain the same header files, and the search rules for header files also have their own regulations. Library files similarly have search path issues. GCC Header Files When compiling C code with … Read more

GCC Attributes Worth Learning

GCC Attributes Worth Learning

If you often look at the Linux source code, you must have seen the attribute attribute, which appears many times in Linux. The attribute is an extension of gcc and does not belong to standard C language. Using attributes can modify the properties of variables, functions, or data types, and there are many attributes, some … Read more

GCC Certification in the Gulf Region

GCC Certification in the Gulf Region

GCC stands for the Gulf Cooperation Council. This council was established in May 1981 in Abu Dhabi, UAE, and its member countries include Saudi Arabia, Kuwait, the United Arab Emirates, Qatar, the Sultanate of Oman, and the Kingdom of Bahrain. GCC certification refers to the certification requirements that must be met for specific products to … Read more

Can Keil Use GCC Compiler?

Can Keil Use GCC Compiler?

Follow+Star Public Account, don’t miss exciting content Author | strongerHuang WeChat Public Account | strongerHuang Recently, I have received some questions from readers: Can Keil use GCC to compile code? Can Keil use other compilers? When you use other GUN toolchains for compilation, you may encounter errors like the following: — Error: can't execute 'as'— … Read more

CLion Tutorial: Code Coverage

CLion Tutorial: Code Coverage

Operating System: Linux / macOS / Windows Project Format: CMake Management Suite: Run | Manage Coverage Reports Ctrl+Alt+F6 Coverage Settings: Settings Ctrl+Alt+S | Build, Execution, Deployment | Coverage In CLion, you can run CMake applications and tests with code coverage measurement. The code coverage results provide the percentage of code lines executed during runtime and … Read more