0
How the compiler Converts c program to machine language
Any software available to check how the compiler Converts to machine language
2 ответов
+ 9
This optimization is done by converting the microscopic code into three address code which is easily read by the machine and process fast over it. This three address code is an optimized form of the code which is take least memory cycle and convert the code in machine readable format.
+ 8
David I don't know about any software for checking the conversion between source code to object code but I know the process how it is done I can try to explain you that
Compiler has some phases all done there work to convert an source code to object code and machine level code.
1) Lexical analyser:- this is analyse the source code and convert all source code in meaningful tokens and lexmes and store this in tokens in symbols table.
2)syntax analyzer:- now this is check the validity of the tokens generated from previous layer syntax analyzer is create an parse tree which shows an parent child relationship with all expression present in the source code.
3) semantics analyzer:- it concert the parse tree into more readable format by reducing the redundancy present in parse tree.
4) code generation:- in this step the op code or microscopic level code is assigned to the source code and this way source code get converted from source code to object code
5) program optimization:- in this program is optimized.