Git Product home page Git Product logo

uditkarode / ucc Goto Github PK

View Code? Open in Web Editor NEW
20.0 2.0 6.0 16.52 MB

๐Ÿ–ฅ Compile and run programs through the TurboC Compiler without having to use the TurboC IDE or intricately fabricated DOS commands. Made out of frustration sometime in my high school days.

Home Page: https://uditkarode.github.io/ucc

License: Apache License 2.0

Shell 3.88% C 66.29% C++ 29.68% Makefile 0.16%
turbocpp turboc command-line cli ucc-workspace ucc linux students extraction

ucc's Introduction

UCC

This was built for the students of schools/colleges that still use TurboC++ and teach it's archaic code samples, and ask its students to use the same. You no longer need to torture your eyes by using that ugly blue and old pixelated IDE anymore, and the codes you write will be exactly same as TurboC++! No 'using namespace std;' stuff required!

NOTE: This can compile and run both C and C++ codes and has FULL support for the graphics library.

NOTE: a UCC workspace is a folder that contains all your working files and folders for UCC. Make sure you don't use the folder for anything else.

Common Instructions:

EVERY valid UCC Workspace will contain these folders:

  • builds/ (this will contain the built EXE files)
  • sources/ (this will contain the C/CPP source code)
  • logs/ (this will contain the build and DosBox logs)
  • files/ (this will contain the files created through C/C++ using filestreams)
  • headers/ (this will contain your custom header files)

WINDOWS:

Here is a video that guides you on how to install Visual Studio Code (a very good code editor) and use it with UCC: https://www.youtube.com/watch?v=WLkYAsEskq8

To use UCC on Windows, download https://github.com/uditkarode/ucc/archive/refs/heads/windows.zip

Now, make a new folder somewhere, and extract the zip inside it.

After extraction, you must run UCC-INIT.bat. The file will set up the directory and automatically remove itself.

After this step, you must place your source codes in the sources/ directory.

You can now use UCC-BUILD.bat, UCC-RUN.bat, or UCC-BUILD-RUN.bat to compile, run, or compile and seamlessly run respectively.

This has been tested working on Windows 10.

For advanced users: If you prefer direct command line usage, you can change directory to the assets folder and use ucc this way:

.\bash ucc --build abc.cpp
.\bash ucc --run abc.cpp.EXE

--OR--

.\bash ucc -br abc.cpp

*NIX:

ARCH LINUX/MANJARO USERS:
UCC is available on the AUR.

yay/yaourt -S ucc

SCRIPT METHOD:
The commands below will do the heavylifting for you. You can copy and paste them to your terminal directly. After executing them, your workspace will be ~/UCCRoot :
cd ~
git clone --depth 1 https://github.com/uditkarode/ucc.git
sudo mv ucc/ucc /bin/ucc
sudo chmod +x /bin/ucc
mkdir UCCRoot && cd UCCRoot
mv ~/ucc/BIN .
mkdir builds sources logs files headers
rm -rf ~/ucc
ucc --workspace .

You can now place your source code in the ~/UCCRoot/sources directory.

After setting up UCC, you can compile and run your programs with a command as simple as ucc -br program.cpp!

For instructions on usage of the script, use ucc --help

In the words of Bob the Builder:

Happy Building!

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.