C++ Project Build Part Eight: CMake Code Directory

C++ Project Build Part Eight: CMake Code Directory

Last time, in C++ Project Build Part Seven: Creating a Library with CMake, all the source code of the modules (libraries and executables) in the example demo7 was in one directory, which made the structure very unclear (if there are hundreds of source files, it would be a nightmare). Below, we will look at an … Read more

A Step-by-Step Guide to Compiling LineageOS Emulator Images and Importing Them into Android Studio!

A Step-by-Step Guide to Compiling LineageOS Emulator Images and Importing Them into Android Studio!

Copyright belongs to the author. If you wish to share, please indicate the source of the article: https://cyrus-studio.github.io/blog/ Introduction This guide will take you through the process of downloading the source code, configuring the environment, compiling, and exporting a complete emulator image to run LineageOS in the Android Studio emulator. Compared to the official system … Read more

Essential Knowledge Points for C Language Beginners: The Role of #include – A Detailed Explanation of Header File Inclusion

Essential Knowledge Points for C Language Beginners: The Role of #include - A Detailed Explanation of Header File Inclusion

“From today onwards, study hard and make progress every day” Repetition is the best method for memory; spend one minute each day to remember the basics of C language. “Essential Knowledge Points for C Language Beginners: 100 Articles Series“ 5. The Role of #include: A Detailed Explanation of Header File Inclusion 1. Basic Functions of … Read more

A Comprehensive Guide to Downloading and Compiling LineageOS Source Code

A Comprehensive Guide to Downloading and Compiling LineageOS Source Code

Copyright belongs to the author. If reposting, please indicate the source of the article: https://cyrus-studio.github.io/blog/ Source Code Download • LineageOS Official Website: https://lineageos.org/ • LineageOS Source Code GitHub: https://github.com/LineageOS/android • LineageOS Source Code Domestic Mirror: https://mirrors.tuna.tsinghua.edu.cn/help/lineageOS/ The source code requires approximately 150GB of hard disk space, and the compiled output will be around 300GB. word/media/image1.png … Read more

Quick Access to AOSP: Successfully Compiling and Debugging Android Source Code

Quick Access to AOSP: Successfully Compiling and Debugging Android Source Code

/ Today’s Tech News /Recently, according to numerous user reports, the iQIYI App has started to impose restrictions on its casting feature. Previously, Gold VIP members could cast at a maximum resolution of 4K, but now they can only select the lowest resolution of 480P. To cast in 4K, one must purchase a Platinum VIP … Read more

Explanation and Expansion on Storage Related to Keil and IAR Compilation

Explanation and Expansion on Storage Related to Keil and IAR Compilation

Weekend · A Moment of Relaxation Written in Advance I Information printed from the Keil and IAR compilation (Build) window: Program Size: Code=2596 RO-data=268 RW-data=44 ZI-data=1028 72,765 bytes of readonly code memory 3,508 bytes of readonly data memory 20,202 bytes of readwrite data memory 5,676 bytes of CODE memory 926 bytes of CONST memory 1,148 … Read more

Basic Concepts of C Language

Basic Concepts of C Language

1. Introduction to Hello World /* Program functionality: Display a string of characters on the PC screen */ #include <stdio.h> int main(void) { printf("Hello, World\n"); return 0; } In Linux, when using GCC to compile the Hello World program, the simplest command is (assuming the source code file is named main.c): $gcc main.c $./a.out Hello … Read more

C Language Exercise Class – Day 26

C Language Exercise Class - Day 26

01 (Common Mistake) The basic unit of a C program is a function (True/False) Answer: True Explanation: The basic unit of a C program is a function. C is a structured programming language, and a C program consists of one or more functions. Every C program must include the main() function as the entry point, … Read more

Makefile: Why Modifying Only the .h Header File Doesn’t Work During Compilation?

Makefile: Why Modifying Only the .h Header File Doesn't Work During Compilation?

Have you ever encountered a situation like this: A .c file includes another .h header file, using a Makefile to build (compile) the application. The first time you compile and execute, everything works fine! However, if you modify the .h header file and try to compile again, issues arise: The expected execution flow is: make … Read more

Understanding the Compilation Process of GCC

Understanding the Compilation Process of GCC

The compilation process of GCC mainly includes four stages: preprocessing, compilation, assembly, and linking. During this process, three tools are used: cc1, as, and collect2. Among them, cc1 is the compiler corresponding to the first and second stages, used to compile the source file hello.c into hello.s; as is the assembler corresponding to the third … Read more