Click here to Skip to main content
Rate this: bad
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 11:25am
Sergey Alexandrovich Kryukov at 31-Jul-12 16:33pm
Well, hot do you think? :-)

1 solution

Rate this: bad
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.
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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,478
1 OriginalGriff 6,516
2 Peter Leow 3,567
3 Zoltán Zörgő 3,351
4 Richard MacCutchan 2,397

Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2015
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