LAB 04 - SERVER 2

 "How I Built GCC From Source: A Step-by-Step Guid"

PART 2

"The GNU Compiler Collection (GCC) is a powerful tool for compiling source code into executable programs. As a developer, it's essential to understand how compilers work. In this blog post, I'll walk you through my experience of building GCC from scratch, challenges I faced, and tips to optimize the process"

aarch64-002

Step 1: Configure the Build Process

""""./contrib/download_prerequisites

mkdir build

cd build

../configure --enable-languages=c,c++ --disable-multilib""""

STEP 2:  Build GCC using make:

make -j$(nproc)


Install GCC USING SUDO COMMAND
👍




STEP 3: Prove that it’s different from the system compiler


Older Version: 11.3.1

NEW VERSION 15.0.1


STEP 4: TESTING THE C FILE :



👌

SUCCESS


STEP 5: BUILD TIME

Build Time Comparison

Step
aarch64-002 Server
Initial Build Time
54 MINS 9 SECS
Build Time After Updating passes.cc7 minutes
Null Rebuild Time (No Changes)    3 minutes




REFLECTION==>
👀
In conclusion, building GCC on the aarch64-002 server reinforced my understanding of architecture-specific optimizations and the need to tailor the build process to the target platform. The experience also highlighted the value of having a stable, production-ready GCC for general tasks, while also recognizing the potential benefits of using a development version for more cutting-edge features. As I continue working with different hardware architectures in the future, I’ll be more mindful of how to configure my tools and optimize my builds for the specific systems I’m working on.




















Comments

Popular posts from this blog

Project Stage 1: Create a GCC pass

LAB 03

Project Stage 2: Part 2( The End)