Project Stage 1: Building and Exploring GCC on AArch64: A Deep Dive into the Build Process and Compilation Dumps
Introduction The goal of this blog is to document my process of building the current development version of GCC on an AArch64 platform, with a particular emphasis on understanding the compilation stages via intermediate representation (IR) dumps. This journey has given me valuable insights into the GCC build system, compilation passes, and optimisation techniques. Section 1: Preparing the Environment for GCC Build Objective : Set up the necessary environment and dependencies to build GCC from source on an AArch64 platform. Steps and Detailed Commands Install Essential Dependencies : To ensure a successful build, I installed essential libraries and tools required by GCC: sudo apt update sudo apt install build-essential libgmp-dev libmpfr-dev libmpc-dev git texinfo bison flex Each library supports a specific function: GMP : For arbitrary precision arithmetic. MPFR : For floating-point computations with precise control. MPC : For complex number arithmetic. Having these dependencies ...