Posts

Showing posts from February, 2025

Lab 4 - GCC Build Lab (Part 1)

Image
Introduction This lab focuses on learning how to build the GCC (GNU Compiler Collection) from source code . GCC is a widely used compiler that supports multiple programming languages, including C and C++. Since GCC is a large and complex software project, understanding its build process is essential. By completing this lab, we will: • Learn how to obtain, configure, and compile GCC. • Use common build tools like make , autotools , and configure . • Gain experience working with large open-source projects . • Compare build performance on different architectures (x86_64 and AArch64). For this lab, we will perform the experiment on two SPO600 servers: 1. x86-001 (x86_64 architecture) 2. aarch64-002 (AArch64 architecture) For now, I will begin with x86-001 and document the process.  Step 1: Downloading the GCC Source Code The first step is to obtain the latest GCC development version . The recommended way is to clone the official GCC repositor...

Lab 3 - Another Trial (Word Guessing Game)

Image
Introduction This project is an attempt to build a word guessing game in 6502 Assembly. Unlike the previous completed version, this iteration is somewhat unfinished and does not fully adhere to the intended game mechanics. However, the process led to some interesting findings, and I believe the results are still worth sharing. Overview This project is a simple word guessing game written in 6502 Assembly, inspired by classic word games like Hangman. The player is given a fixed word to guess and has eight attempts to correctly guess the letters. If the player completes the word before running out of attempts, they win. Otherwise, they lose, and the correct word is revealed. **Building a Simple Word Guessing Game in 6502 Assembly** How It Works - The game starts by displaying a short introduction and setting up the word to guess ("seneca"). - The guessed word is initially displayed as underscores (e.g., `_ e _ e _ a`). - The player inputs a lowercase letter, which is checked aga...