Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Confusion about object code generated?

Confusion about object code generated?

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++performance
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lionelcyril
    wrote on last edited by
    #1

    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....

    E _ CPalliniC 3 Replies Last reply
    0
    • L lionelcyril

      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....

      E Offline
      E Offline
      Eytukan
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • L lionelcyril

        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....

        _ Offline
        _ Offline
        _Superman_
        wrote on last edited by
        #3

        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.

        E 1 Reply Last reply
        0
        • _ _Superman_

          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.

          E Offline
          E Offline
          Eytukan
          wrote on last edited by
          #4

          Oops I was just adding it.

          Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.

          1 Reply Last reply
          0
          • L lionelcyril

            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....

            CPalliniC Offline
            CPalliniC Offline
            CPallini
            wrote on last edited by
            #5

            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]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups