Coder Social home page Coder Social logo

cpprun's Introduction

cpprun

cpprun is a command line tool for quickly compiling and running C++ programs. It provides various options for customizing the compilation and execution process, such as specifying the compiler to use, adding compiler options, redirecting output to a file, and more.

Requirements

cpprun requires a C++ compiler (such as g++) and the GNU Compiler Collection (GCC) to be installed on your system. It has been tested on Linux and macOS, and may also work on other Unix-like operating systems.

Installation

To install cpprun, simply download the cpprun executable and add it to your PATH. You can also build the cpprun executable from source by running the following commands:

git clone https://github.com/username/cpprun.git
cd cpprun
make

Usage

Usage: cpprun [OPTIONS] source_file
Compile and run C++ program quickly.
Options:
  -h, --help                    Display this help message
  -o, --output=<executable_name> Specify the name of the final executable (default: source_file name without suffix)
  -r, --run                     Run the program after compiling
  -c, --clean                   Clean the screen before executing the program
  -d, --delete                  Delete the executable after executing the program
  -C, --compiler=<compiler>     Specify the compiler to use (default: g++)
  -O, --compiler-options=<options> Specify additional compiler options
  -D, --debug                   Generate debug information to help debug the compiled program
  -M, --check-memory            Check memory leaks and dereference errors in the compiled code
  -f, --output-file=<file>      Redirect the output of the compiled program to a file instead of the console

To compile and run a C++ program, simply run cpprun source_file.cpp. By default, the program will be compiled using the g++ compiler and the output file will be named after the source file. You can use the various options to customize the compilation and execution process. For example, to compile with the clang++ compiler and generate debug information, you can run cpprun -C clang++ -D source_file.cpp. To redirect the output of the program to a file instead of the console, you can run cpprun -f output.txt source_file.cpp.

License

cpprun is released under the MIT License.

cpprun's People

Contributors

patzi275 avatar

Stargazers

 avatar Eliot FAGNON avatar Elikem Medehou avatar  avatar

Watchers

 avatar

Forkers

a7t0fwa7

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.