Browse over 10,000 Electronics Projects

Download and Install Turbo C for Windows

Download and Install Turbo C for Windows

In this article, I’ll show you how to download Turbo C for Windows (or Turbo C++), install Turbo C compiler on any version of Windows Operating System and write a C Program in Turbo C.

Turbo C and Turbo C++ are compilers for C and C++ (C plus plus) Programming Languages. They were originally developed by Borland Software Corporation as a combination of Integrated Development Environment (IDE) and Compiler.

Turbo C++ replace Turbo C in the year 1990 and later both were discontinued. Turbo C/C++ was famous for its small size, speed of compilation, price, documentation and the whole integrated development environment.

The original Turbo C/C++ were 16 – bit compilers as they were developed for 16 – bit CPUs (Intel’s 8086 Series of Microprocessors).

Even though Turbo C is discontinued and is not compatible with the current generation systems (like Windows 7, 8 and 10), many programmers and developers still prefer to use the old Turbo C environment.

Personally, I started my C Programming training and development through Turbo C Compiler. So, in this post, I’ll take you through the process of how to download Turbo C, how to install Turbo C on any of the latest Windows Operating System i.e. Windows 7, Windows 8 and Windows 10, be it a 32 – bit version or a 64 – bit version.

What is a Compiler?

Before going in to Turbo C Compiler, we will first see what a Compiler is. A Compiler is a program or a software that transforms programs written in High Level Programming Languages such as C, C++, Python, etc. to Low Level Programming Languages like Assembly Language, Machine Code etc.

Turbo C is a C Programming Language Compiler that transforms programs written in C to Assembly or Machine Code to create an executable Program.

What makes Turbo C/C++ Special?

The original developers of Turbo C, Borland sold the Turbo C++ compiler to a company called Embarcadero Technologies. The Turbo C++ Compiler was later upgraded to their flagship Compiler called C++ Builder.

There are many Compilers for C and C++ Programming Languages but what make Turbo C/C++ special is its speed of Compilation of the Programs, size of the overall software (Turbo C occupies very little memory), compatibility with wide range of I/O Modules, support for large projects etc.

Hence, many programmers and software developers still prefer the old Turbo C Compiler and IDE.

Download Turbo C for Windows (Turbo C++)

If Turbo C/C++ is discontinued, then how can we install it in our system? Even though Turbo C++ is discontinued, there are many simulators that work similar to the original Turbo C and Turbo C++ and present that retro look with its iconic blue screen.

DOSBox is one such software that emulates a DOS Operating System. Using DOSBox, we can run x86 compatible games and software on our latest systems.

Using DOSBox, developers achieved to bring back the Turbo C++ Compiler to the latest version of Windows as the original Turbo C/C++ is a 16 – bit compiler.

Now, in order to install Turbo C++ on your computer (any 32 – bit or 64 – bit computer running on any Windows version from Windows 7), there are two ways you can proceed.

One way is to download the DOSBox Emulator and Turbo C++ Compiler separately and install them both on our computer. The other way is to simply download and install the Turbo C++ for Windows Application.

To download the Turbo C++ for Windows, follow this link.

How to Install Turbo C for Windows?

After downloading the application (it will be downloaded in a zip file), extract the zip file and open the setup file (or the Turbo C++ 3.2 File).



Advertisement1


Continue with the installation by simply clicking next. After installation is complete, you will get a launch the application checkbox. Keep it checked and click on finish.

A desktop shortcut will be created, using which you can launch the application. After launching the application, you will get a control screen. In order to start the Turbo C++ Compiler, click on the “Start Turbo C++” link on the bottom right part of the window.

Turbo C for Windows Image 2

Before clicking on the Start Turbo C++ Link, you can check the Full Screen Mode option on the bottom left part of the control window. This option will allow you to directly start the Turbo C++ in full screen mode.

How to Configure Turbo C++?

After clicking on the Start Turbo C++ link, you will automatically get the Turbo C++ Window with its iconic blue screen.

TIP: To Toggle between window mode and full screen mode, use Alt + Enter.

Turbo C for Windows Image 3

After the Turbo C++ is launched, the first step you need to do is to make sure that all the directories associated with Turbo C++ are correct. For example, the directory INCLUDE contains all the header files like STDIO, CONIO, MATH, etc.

In our case the directories are as follows:

Include Directory: C:TURBOC3INCLUDE

Library Directory: C:TURBOC3LIB

Output Directory: C:TURBOC3SOURCE

Source Directory: C:TURBOC3SOURCE

Turbo C for Windows Image 4

First Program in Turbo C++

After setting up the directories, you are ready to begin programming in Turbo C++. So, to start writing a program, go to File Tab and Click on New (you can use the keyboard shortcuts). A new editor window will be opened.

The first program we usually write in C Language is the Hello World. Without any further ado, start typing the code. The program for printing Hello World is given below.

#include<stdio.h>
#include<conio.h>
void main ()
{
clrscr();
printf(“Hello, World!”);
getch();
}

Turbo C for Windows Image 5

To save the file, click File –> Save or F2. Type in an appropriate name, like TEST.CPP. Compile the code by pressing Alt + F9. A small window will popup mentioning the result of the compilation (like success, error, warnings, etc.). After successful compilation, in order to run the program, enter Ctrl + F9. You will get the result in a new window.

Turbo C for Windows Image 6

You have successfully downloaded Turbo C++, installed it in your latest Windows System and written your first C Program.

In this tutorial, I have shown you how to download Turbo C for Windows, install Turbo C on any latest version of Windows (Windows 7, 8 or 10) and also how to write C Program in Turbo C.

The post Download and Install Turbo C for Windows appeared first on Electronics Hub.

Read Original Article

 


Top