阅读背景:

我可以将GCC作为守护程序运行(或将其用作库)吗?

来源:互联网 

I would like to use GCC kind of as a JIT compiler, where I just compile short snippets of code every now and then. While I could of course fork a GCC process for each function I want to compile, I find that GCC's startup overhead is too large for that (it seems to be about 50 ms on my computer, which would make it take 50 seconds to compile 1000 functions). Therefore, I'm wondering if it's possible to run GCC as a daemon or use it as a library or something similar, so that I can just submit a function for compilation without the startup overhead.I would like to use GCC kind of as a JIT compil




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: