Skip to content

CaptainDaVinci/Compiler-Flag-Selector

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Compiler

Usage

Clone the project

$ git clone https://github.com/soumyas98/Compiler.git 

Parser

$ cd Compiler/parser
$ make

Genetic Algorithm

  1. Create a virtual environment
$ cd GA
$ python -m venv ./env
  1. Activate virtual environment

For command prompt

$ env/Scripts/activate.bat

For power shell

$ env/Scripts/Activate.ps1
  1. Install dependencies
$ pip install -r requirements.txt
  1. To run
$ python src/main.py
  1. To run the UI
$ cd ui
$ npm install
$ ng serve

See the algorithm in action!

You can now view the simulation here.

About

Selecting optimal compiler flags using genetic algorithm

Resources

Stars

Watchers

Forks

Languages

  • HTML 52.2%
  • C 27.0%
  • TypeScript 10.6%
  • Python 5.8%
  • CSS 1.4%
  • JavaScript 1.0%
  • Other 2.0%