Is Clang Better Than GCC? Google’s Kernel Developers Build Kernel with Clang

Is Clang Better Than GCC? Google's Kernel Developers Build Kernel with Clang

(Click the public account above to follow quickly) Source: Solidot www.solidot.org/story?sid=54012 If you have good articles to submit, please click → here for details At the Linux Plumbers Conference, Google’s kernel developers Greg Kroah-Hartman and Nick Desaulniers presented the progress of building the kernel with Clang. Desaulniers stated that today’s Android user space is built … Read more

Exploring the Rust Compiler: GCC vs LLVM

Exploring the Rust Compiler: GCC vs LLVM

The Rust compiler uses a borrow checker to optimize code performance and memory management. Rust code is compiled using the official compiler rustc. rustc uses LLVM optimizations on the backend to convert high-level Rust code into low-level machine code. However, a new GCC frontend called gccrs has recently emerged as an alternative to the rustc … Read more

Understanding GCC From a Java Programmer’s Perspective

Understanding GCC From a Java Programmer's Perspective

Source | Low Concurrency Programming Author | Flash Player As a Java programmer, I always forget the basic usage of gcc and am not very familiar with it. Today, this article records the basic knowledge of gcc in the simplest way. The Compilation Process Write a hello.c code. #include <stdio.h> #define STR "hello world\n" void … Read more

The Dance of Compilation: C/C++ and GCC Collaboration

The Dance of Compilation: C/C++ and GCC Collaboration

On the modern stage of computing, programming languages are like dancers, while compilers are the choreographers guiding them from behind the scenes. Every piece of code written is like a carefully designed dance. On this stage, C language and GCC (GNU Compiler Collection) are a classic duo. Together, they perform a magnificent dance of compilation, … Read more

Common Linux GCC Commands

Common Linux GCC Commands

(Click the public account above to quickly follow) Source: ggjucheng Link: http://www.cnblogs.com/ggjucheng/archive/2011/12/14/2287738.html 1 Introduction The meaning of GCC is just GNU C Compiler. After so many years of development, GCC now supports not only C language; it also supports Ada, C++, Java, Objective C, Pascal, COBOL, and even functional and logic programming languages like Mercury, … Read more

What Are GCC and G++? Understanding Their Differences

What Are GCC and G++? Understanding Their Differences

Source: C Language Chinese Network Editor: strongerHuang As of September 2020, the GCC compiler has been updated to version 10.2, and its functionality has expanded from initially only compiling C language to now supporting multiple programming languages, including C++. In addition, the current GCC compiler also supports compiling programs in Go, Objective-C, Objective-C++, Fortran, Ada, … Read more

The ‘Defer’ Feature in C Language: A Practical Guide and Implementation Analysis

The 'Defer' Feature in C Language: A Practical Guide and Implementation Analysis

In the world of C programming, code safety and resource management have always been crucial topics. Today, we will focus on a feature that is expected to become an important part of future versions of C language: ‘defer’. We will explore how to apply this feature in existing tools and compilers, as well as its … Read more

Understanding Embedded Linux Cross-Compilation Environment Setup

Understanding Embedded Linux Cross-Compilation Environment Setup

1. Introduction In the previous article titled “How to Install a Linux Virtual Machine”, we explained the installation method for a Linux virtual machine. To build an embedded Linux development environment, it is necessary to configure the cross-compilation environment within the Linux virtual machine. Therefore, this article will introduce the configuration method for the cross-compilation … Read more

Steps for Developing Embedded Linux Projects

Steps for Developing Embedded Linux Projects

Development boards from microcontroller manufacturers, along with their software project examples, can greatly assist engineers when starting a new design. However, after the project design reaches its early stages, the software provided by manufacturers may lead to some issues during further design. Designs that use a real-time operating system as the application code platform also … Read more