https://github.com/uditkarode/ucc
🖥 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.
https://github.com/uditkarode/ucc
cli command-line extraction linux students turboc turbocpp ucc ucc-workspace
Last synced: about 1 month ago
JSON representation
🖥 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.
- Host: GitHub
- URL: https://github.com/uditkarode/ucc
- Owner: uditkarode
- License: apache-2.0
- Created: 2018-11-07T08:14:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-14T13:30:59.000Z (over 2 years ago)
- Last Synced: 2025-04-11T23:16:15.662Z (about 1 month ago)
- Topics: cli, command-line, extraction, linux, students, turboc, turbocpp, ucc, ucc-workspace
- Language: C
- Homepage: https://uditkarode.github.io/ucc
- Size: 16.1 MB
- Stars: 20
- Watchers: 1
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
.\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 :
```bash
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!