Skip to content

Emwook/Stack_Processor_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

About

A custom stack-based processor implementation in C, featuring support for recursive function execution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors