Project Stage 1.1

 Building GCC

To familiarize myself with the GCC build process, I will build the GCC compiler on the Aarch64 and X86 platforms. The first step is to clone the GCC source code. 

git clone git://gcc.gnu.org/git/gcc.git


Then, I created a build directory and configured the build process. I specified the installation directory to be within my home directory to avoid system-wide changes:

mkdir build

cd build

~/gcc/configure --prefix=$HOME/gcc-test-003


After that, I made the makefile using the time command to track how long it would take to build it and used "$(nproc)" to allocate the maximum number of available processors:

time make -j$(nproc)


The build process took a considerable amount of time, approximately 1 hour and 40 minutes on the AArch64 system, with the output indicating:

real    100m53.500s

user    959m5.096s

sys     31m38.558s


While the x86 system was significantly faster, with an approximate time of 37 minutes with output:

real    37m27.581s

user    412m56.108s

sys     13m25.849s


After the build was completed, I installed GCC on both systems:

make install


I was able to successfully install GCC on both systems without any issues. I was amazed by the time it took each system to create the makefile.



Comments

Popular Posts