'/> What is a compiler?
Jamil Hussain Jawadi

What is a compiler?

Compilers




The most important tools needed to follow these lessons are a computer and an integrated toolkit that can integrate C ++ code and create programs that will work on it.

C ++ is a language that has changed dramatically over the years, and these studies explain many of the features that have been added later in the language. Therefore, in order to properly follow the tutorial, the latest compiler is required. It will support (even slightly) the features introduced by the 2011 standard.

Many affiliate marketers support new features with varying degrees. See at the bottom of this page to find specific compilers that are known for supporting the required features. Some of them are free!

If for some reason, you need to use an old link, you can access the old version of these courses here (no longer being reviewed).








What is a producer?
Computers understand only one language and that language contains sets of instructions made by another zero. This computer language is aptly named in machine language.

One command on the computer can look like this:

00000 10011110

A specific computer programming language that allows the user to enter two numbers, add two numbers together, and display an amount that may include these machine code commands:

00000 10011110
00001 11110100
00010 10011110
00011 11010100
00100 10111111
00101 00000000

As you can imagine, setting up a computer directly in machine language using only one and zero is very tedious and often a mistake. To make programs easier, advanced languages ​​have been developed. Systems are advanced and make it easy for organizers to easily check and understand each other's plans.

This is the part of the code written in C ++ that serves exactly the same purpose:

1
2
3
4
5
6
7
int a, b, total;
     
cin >> a;
cin >> b;
             
total = a + b;
cout << sum << endl;


Even if you can really understand the code above, you should be able to understand how easy it will be to edit in C ++ language as opposed to machine language.

Because computers can only understand machine language and people wish to write in advanced languages ​​languages ​​have to be rewritten (translated) into machine language at some point. This is done by special programs called co-ordinators, interpreters, or compilers built into various editing systems.

C ++ is designed to be integrated language, which means it is often translated into machine language that cannot be directly understood by the system, making the generated system more efficient. Therefore, a set of tools is required, known as a development toolchain, the core of which is the comiler and its connector.


Console programs
Console programs are applications that use text to communicate with the user and the environment, such as screen printing, or input text inputs from the keyboard.

Console programs are easy to work with, and often have the same predicted behavior across all platforms. They are also easy to use and therefore very useful for learning the basics of programming language: Examples of these lessons are console programs.

How to assemble console programs depends on the specific tool you use.

An easy way for beginners to integrate C ++ programs is to use the Integrated Development Environment (IDE). The IDE usually includes a number of development tools, including a text editor and tools for integrating programs directly into it.

Here you have instructions on how to integrate and implement concert programs using various Integrated Development Interfaces (IDEs):

IDE Platform Console Programs
Code :: blocks Windows / Linux / MacOS Integrate console applications using Code :: blocks
Visual Studio Express Windows Compile console applications use VS Express 2013
Dev-C ++ Windows Compile console applications use Dev-C ++

If you happen to have a Linux or Mac environment with advanced features, you should be able to integrate any examples directly from the terminal by installing C ++ 11 flags in the compiler command:

Command Compiler Platform
GCC Linux, among others ... g ++ -std = c ++ 0x example.cpp -o example_program
Clang OS X, among others ... clang ++ -std = c ++ 11 -stdlib = libc ++ example.cpp -o example_program

Post a Comment

0 Comments