Change optimization level for Windows
This commit is contained in:
30
README.md
30
README.md
@@ -4,43 +4,43 @@ Puts a spinning ASCII torus (mathematical name for a doughnut-shaped object) on
|
|||||||
|
|
||||||
# How to run
|
# How to run
|
||||||
|
|
||||||
* Clone or download and extract the repository
|
- Clone or download and extract the repository
|
||||||
* Open a terminal inside the project directory
|
- Open a terminal inside the project directory
|
||||||
* Follow the steps for your Operating System
|
- Follow the steps for your Operating System
|
||||||
|
|
||||||
# For Windows
|
# For Windows
|
||||||
|
|
||||||
## Prerequisites for Windows
|
## Prerequisites for Windows
|
||||||
|
|
||||||
* Install a compiler like [MinGW-w64](https://sourceforge.net/projects/mingw-w64/)
|
- Install a compiler like [MinGW-w64](https://sourceforge.net/projects/mingw-w64/)
|
||||||
|
|
||||||
## How to build and run
|
## How to build and run
|
||||||
|
|
||||||
* `gcc -Ofast -o torus.exe torus.c -lm` in the shell to compile using MinGW-w64
|
- `gcc -O2 -o torus.exe torus.c -lm` in the shell to compile using MinGW-w64
|
||||||
* `.\torus.exe` in the shell to run the program
|
- `.\torus.exe` in the shell to run the program
|
||||||
|
|
||||||
# For Linux
|
# For Linux
|
||||||
|
|
||||||
## Prerequisites for Debian based distributions
|
## Prerequisites for Debian based distributions
|
||||||
|
|
||||||
* `sudo apt install gcc` to install the required compiler
|
- `sudo apt install gcc` to install the required compiler
|
||||||
|
|
||||||
## Prerequisites for Arch based distributions
|
## Prerequisites for Arch based distributions
|
||||||
|
|
||||||
* `sudo pacman -S gcc` to install the required compiler
|
- `sudo pacman -S gcc` to install the required compiler
|
||||||
|
|
||||||
## How to compile, run and clean
|
## How to compile, run and clean
|
||||||
|
|
||||||
* `make` to compile
|
- `make` to build the program
|
||||||
* `./torus` to run
|
- `./torus` to run the program
|
||||||
* `make clean` to clean
|
- `make clean` to remove the binary
|
||||||
|
|
||||||
# Updates
|
# Updates
|
||||||
|
|
||||||
* Added support for dynamic resolution based on current terminal size
|
- Added support for dynamic resolution based on current terminal size
|
||||||
* Added Windows support
|
- Added Windows support
|
||||||
* Added support for on-the-fly dynamic resolution
|
- Added support for on-the-fly dynamic resolution
|
||||||
* Added help option to the program
|
- Added help option to the program
|
||||||
|
|
||||||
# Screenshot
|
# Screenshot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user