0
How a compiler works
3 Réponses
+ 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
+ 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
+ 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.