开发者

GCC: how to pause/continue compilation?

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 fin开发者_JS百科d an option to load the file back in.


I see a few options:

  • try to update your patch for 4.3.1 to 4.5.0 (do not try to merge the patched 4.3.1 code branch with the 4.5.0 code branch, that would be mayhem)
  • try to get your patch to 4.3.1 to be included in the 4.5 release. If it fixes a bug, that should be possible (just file a _detailed_ report on the GCC bugzilla)
  • try to modify your code so that it does not depend on that 4.3.1 patch or on the plugin infrastructure

Or... all of the above.

Trying to get your code halfway compiled partially by one version, then finished by another sounds completely hopeless.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜