0

How a compiler works

8th May 2017, 4:39 AM
Sai Venkat
Sai Venkat - avatar
3 Respuestas
+ 2
The works of compiler is complicated to say. But it involves several steps. This is the steps inside a simple compiler: 1. Lexical analysis - convert program into sequence of tokens 2. Syntax analysis - will construct back the structure by referring to the tokens. 3. Semantic analysis - ensure program to have well-defined meaning 4. Code generation - machine code
8th May 2017, 5:33 AM
Asyraf
Asyraf - avatar
+ 2
We made a programming language which has a unique method of compilation, the small 10kb compiler code will be inserted to your code. I know its wierd it'll take some time. But ensures you that you're code is correct and not messed up
8th May 2017, 5:40 AM
Complex
Complex - avatar
+ 2
what i know from compiler. the compiler first check your syntax if it is correct then it converts it to machine language specially wirh extension .o; then we need a linker which links the machine language file with your system depending upon your architecture. so.thats why we can't run 32 bit program in 64 bit.
8th May 2017, 5:51 AM
MR Programmer
MR Programmer - avatar