Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.27 KB

File metadata and controls

33 lines (22 loc) · 1.27 KB

C Stack-Based Processor

A custom software implementation of a stack-based processor written in C. This project was developed as part of the Algorithms and Data Structures course to deeply understand low-level execution models and memory management.

Project Overview

The core objective of this project is to simulate a processor architecture that relies on a stack for its operations, specifically designed to handle and execute recursive functions. It demonstrates a fundamental understanding of how compilers and hardware manage function calls, local variables, and execution state under the hood.

Tech Stack

  • Language: C
  • Build Tool: Makefile

Core Concepts Implemented

  • Stack Management: Custom implementation of stack push/pop operations.
  • Recursion Handling: Mechanisms to store and retrieve execution context (simulating stack frames) to allow complex recursive algorithms to run.
  • Memory Allocation: Manual memory management in C.

How to Build and Run

The project includes a Makefile for easy compilation.

1. Compile the project

make

2. Run the executable

./app

(Note: If the program requires specific input files, e.g., src.txt, provide them as arguments or pipe them as required by the current logic).