GCC:如何暂停/继续编译?
是否有一个选项可以停止编译并将状态保存到文件,然后加载文件并继续编译?
我知道 GCC 有 -fdump-gimple-tree
选项,这使得 GCC 将内部表示“GIMPLE”转储到文件中,但我找不到重新加载文件的选项。
Is there an option to stop compilation and save state to a file and then load the file and continue compilation?
I know that GCC has -fdump-gimple-tree
option, which makes GCC dump an internal representation "GIMPLE" to a file, but I cannot find an option to load the file back in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我看到几个选项:
或者...以上所有。
试图让你的代码由一个版本部分编译,然后由另一个版本完成,这听起来完全没有希望。
I see a few options:
Or... all of the above.
Trying to get your code halfway compiled partially by one version, then finished by another sounds completely hopeless.
我不知道如何停止 GCC 编译,但您可以缓存已编译的文件,这样 GCC 就不必再次编译它们。请参阅 CCache。
因此,如果您在某个时候粗暴地停止编译,例如使用 Ctrl-C,那么当您再次启动时,将从缓存中检索所有已编译的文件。
I don't know about stopping GCC compilation, but you can cache already compiled file so GCC won't have to compile them again. See CCache.
So if you stop brutally the compilation at some time, say with Ctrl-C, when you start again, all files that were already compiled will be retrieved from the cache.