Stage 1 Completed
Project Stage 1 Completed! For the first stage of my SPO600 project, I created a custom GCC pass that prints out the name of each function being compiled, along with the number of basic blocks and GIMPLE statements in that function. This gave me a deeper look into how the compiler breaks down high-level code during the compilation process. Setting Up My Environment I used the recommended three-directory setup: ~/git/gcc/ # GCC source directory ~/gcc-build-001/ # Build directory ~/gcc-test-001/ # Install/test directory I followed the official GCC documentation to configure the build: ../git/gcc/configure --prefix=$HOME/gcc-test-001 --enable-languages=c --disable-bootstrap --disable-multilib time make -j$(nproc) |& tee build.log The build process took a while at first, but using make for incremental rebuilds really saved time later. I made sure to always build inside a screen session so I wouldn't lose progress if my SSH connection dro...