PDA

View Full Version : what is object code? let say we have any line of source code



sana.pari
04-24-2011, 05:55 PM
Dear sir,

what is object code? let say we have any line of source code, what should be it's object code. please mantion any example of source code. And also what is .lib? please also give example of lib.

Thank you very much

Support
04-24-2011, 05:56 PM
Dear student!
object code is not a line of code. It is file of your program which is converted to object code after processing of compiler.
Execution of a program involves series of steps , this is one of those steps.

You write a program which is prog.cpp
prog.cpp---(After passsing from compiler)-----------> prog.obj
prog.obj----------(After linker processing)---------->prog.lib
prog.lib................(After loading and executing)........> prog.exe

i hope your point would clear now