Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Linux
This is a very simple question, but I don't know the answer,really. For example:some program on C++ is running, and I modified and compiled it. Program needs to be restarted or not?
 
P.S.: All this in Ubuntu 12.04 LTS
Posted 31-Jul-12 10:25am
Je7506
Comments
Sergey Alexandrovich Kryukov at 31-Jul-12 16:33pm
   
Well, hot do you think? :-)
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Yes, when you launch a program the instructions are copied into memory, changing the original file won't update it. Plus, how would it switch while it was running? Just because it's on the nth instruction in the original code doesn't mean jumping to that instruction in the new code is a valid state for the program.
  Permalink  
Comments
Je7 at 31-Jul-12 16:48pm
   
Thx. That's all what I want to know.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web03 | 2.8.141022.2 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100