mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-12-01 21:29:26 -06:00
This PR adds a detailed Configuration.md document that comprehensively explains the Compiler Explorer configuration system. It covers: - Configuration file structure and hierarchical loading - Property types and automatic conversions - List separators and specialized formats - Group inheritance and compiler configuration - Variable substitution mechanisms - Advanced features like remote compilers and property debugging Additionally, it updates all related documentation to reference this central document for configuration details, reducing duplication and ensuring consistency. This document will serve as the foundation for future configuration system improvements by providing clear documentation of the current implementation.
31 lines
1.2 KiB
Markdown
31 lines
1.2 KiB
Markdown
# Running Turbo C
|
|
|
|
Instructions on how to run Turbo C using Dosbox on Linux.
|
|
|
|
## Prerequisites
|
|
|
|
To run the Turbo C compiler you will need:
|
|
|
|
- Dosbox - the easiest way to install is to use your OS's package manager, e.g. `sudo apt install dosbox`
|
|
- Turbo C installation - if you have the 3 installation disks, first install those to a single directory with dosbox
|
|
- You will need to setup a directory to function as the `C` drive with a `TC` directory inside.
|
|
- Note that it's assumed all files are in uppercase
|
|
|
|
## Configuration
|
|
|
|
For more information about the configuration system, see [Configuration.md](Configuration.md).
|
|
|
|
In the `turboc.properties` file you can see an example on how to setup the compiler to work with Compiler Explorer.
|
|
|
|
Make sure the `.dosbox` path is correct, as well as the `.root` and `.exe`. The `.root` indicates the root of the `C`
|
|
drive, and the `.exe` points to the actual `TCC.EXE`
|
|
|
|
## More notes
|
|
|
|
Note that Turbo C is C only, so it belongs in your `c.local.properties`.
|
|
|
|
Also note that you will immediately get an error with the default example source code, because the compiler doesn't
|
|
support `//` comments.
|
|
|
|
Also note that in this old C version, you must declare all variables in the first few lines of your functions.
|