Confusion about object code generated?
-
When we compile a C/C++ program we get the object code. Now my doubt is : When the object code is executed after transferring into the main memory what is it : 1. Is it a PROGRAM or 2. IS it a process.... I got really confused today in my vivas today cause of my examiner....
-
When we compile a C/C++ program we get the object code. Now my doubt is : When the object code is executed after transferring into the main memory what is it : 1. Is it a PROGRAM or 2. IS it a process.... I got really confused today in my vivas today cause of my examiner....
A program in execution is called "Process". A program is what you call as .exe. That would also call as an application. So Program, process, Application all would mean same.
lionelcyril wrote:
When the object code is executed after transferring into the main memory what is it :
Also, You don't execute an object code. Your object code gets through linker to make it executable code. .exe
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
-
When we compile a C/C++ program we get the object code. Now my doubt is : When the object code is executed after transferring into the main memory what is it : 1. Is it a PROGRAM or 2. IS it a process.... I got really confused today in my vivas today cause of my examiner....
Another thing to add is that object code cannot be executed. It has to be linked by a linker into an executable before it can be executed.
«_Superman_» I love work. It gives me something to do between weekends.
-
Another thing to add is that object code cannot be executed. It has to be linked by a linker into an executable before it can be executed.
«_Superman_» I love work. It gives me something to do between weekends.
-
When we compile a C/C++ program we get the object code. Now my doubt is : When the object code is executed after transferring into the main memory what is it : 1. Is it a PROGRAM or 2. IS it a process.... I got really confused today in my vivas today cause of my examiner....
When you compile
C/C++
sources, usually you obtain an executable (or an application): the object code (usually again) is just an intermediate result.lionelcyril wrote:
When the object code is executed after transferring into the main memory what is it : 1. Is it a PROGRAM or 2. IS it a process....
Is is a
process
, i.e. a running executable (or running application). 'Program', on the other hand, has a very broad sense, usually the context qualify better its meaning. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]