Git Product home page Git Product logo

paulomaced0 / memory-management-simulator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 429 KB

A Memory Management Simulation System that simulates the allocation and deallocation of memory for processes in an operating system environment. This simulation involves storing processes in memory based on different allocation policies like First Fit and Buddy System

License: MIT License

C 41.15% C++ 53.45% CMake 1.17% Shell 4.23%

memory-management-simulator's Introduction

somm23

SO Memory Management Simulation System



Prerequisites

On Ubuntu you need the following packages installed: build-essential, cmake, doxygen, and git.

sudo apt install build-essential cmake doxygen git

In other Linux distributions you need equivalent packages installed.


Cloning the repo

In a directory of your choice, clone the project to your computer

cd «directory-of-your-choice»
git clone https://[email protected]:detiuaveiro/«your-project»

Preparing the compilation environment

In a terminal, enter the base directory of your project, create the build directory, and use cmake to prepare make

cd «directory-of-your-choice»
cd «your-project»
mkdir build
cd build
cmake ../src

If you prefer ninja, instead of make,

cd «directory-of-your-choice»
cd «your-project»
mkdir build
cd build
cmake -G Ninja ../src

Compiling the code

In a terminal, enter the build directory of your project and run make or ninja

cd «directory-of-your-choice»
cd «your-project»«your-project»«your-project»/build
make

or

cd «directory-of-your-choice»
cd «your-project»/build
ninja

Generating documentation

The code is documented in doxygen. So, you can easily generate html documentation pages.

cd «directory-of-your-choice»
cd «your-project»/doc
doxygen

Then, you can display the pages running (inside the doc directory)

firefox html/index.html &

Of course, you can replace firefox with your favourite browser.


Setting your user name and email in Git

Commands

cd «directory-of-your-choice»
cd «your-project»
git config user.name "«your name»"
git config user.email "«your email»"

allows you to set your user name and email for this repository.

If you want to apply the settings to all repositories in the computer, run the followings commands instead.

cd «directory-of-your-choice»
cd «your-project»
git config --global user.name "«your name»"
git config --global user.email "«your email»"

Testing the code

On the project root:

./test.sh

memory-management-simulator's People

Contributors

paulomaced0 avatar

Watchers

 avatar

Forkers

tomaswp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.