是否需要在Linux中重新加载应用程序之前对其进行修改和编译? [英] Is application being modified and compiled before needs to be reloaded in Linux?

查看:89
本文介绍了是否需要在Linux中重新加载应用程序之前对其进行修改和编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个非常简单的问题,但是我真的不知道答案.例如:C ++上的某些程序正在运行,我对其进行了修改和编译.程序是否需要重新启动?

附注:Ubuntu 12.04 LTS

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

推荐答案

是的,是的,当您启动程序时,指令会复制到内存中,更改原始文件不会对其进行更新.另外,它在运行时将如何切换?仅仅因为它在原始代码中的第n条指令上并不意味着跳转到新代码中的该指令对程序是有效状态.
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.


这篇关于是否需要在Linux中重新加载应用程序之前对其进行修改和编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆