+ 1
What is compiler?
It is given that gnu gcc is the compiler used in c++
17 ответов
+ 4
It is a software who run the code to look the output
+ 4
Machine language is binary language ,consists of 0's and 1's . we cant understand it. Machines only can understand it. Compiler converts high level language to machine language.
+ 4
Binary
+ 3
Machine language is not understandable to human being we cant do programming with machine language and it has top security then programming languages like python,java,c and many other high level languages.
Binary language is known as machine language.
+ 3
It is just the name of the compiler their are various compiler present in market.
For ubuntu,linux,windows etc
+ 2
it just acts like a Converter it actually converts high level language into machine language
+ 2
In simple terms
+ 2
No It is a high level language
+ 2
Compiler is used to convert the user understandable language to machine understandable language.
Every language has its compiler and some have interpreter.
Compiler takes low time when compared to interpreter and compiler takes whole at once and find errors in it where as interpreter compiles each line .
In compiler to execute the program we have to use other command where as in interpreter the command used for compiling is used for executing the program at a time.
In C++ gcc compiler is mostly used
+ 1
Ok thNks
+ 1
It just checks the code top to bottom and display error in the code
C,C++, are some examples of compilers
+ 1
A compiler creates machine code (cause a computer doesnt understand your code it only understand 0 und 1) out of your code. You also get a feedback if something is wrong with your code which can be detected in compile time. If your code is crashing in runtime it will be compiled without throwing errors cause the compiler can only detect syntax and semantic errors.
1) parsing to abstract syntax tree(ast) combined with syntax cause specific language syntax is not important for code generation
2) semantic analysis (type casting errors, not declared varibales...)
3)code generating (low level for example assembler)
Some compilers go through the whole code 1 time (single pass): methods need to be defined before they are used for example
Multi pass:
Compiler first goes multiple times through whole code (methods can be defined after they are used cause the compiler knows them from previos passes)
0
Is C++ is not the machine language?
0
What about gnu gcc
0
Can you tell one name of machine language?
0
Okay Thanks but what about gnu gcc
0
It converts byte code to machine language