据我所知,CSS不是图灵完整的.但我对CSS的了解非常有限.
JIT编译器和CLR有什么区别?如果您将代码编译为il并且CLR运行该代码,那么JIT正在做什么?JIT编译如何通过向CLR添加泛型来改变?
希望这对StackOverflow的问题不太专业:如果是,可以在其他地方迁移,请告诉我......
很久以前,我写了一篇本科毕业论文提出了C++和相关语言的各种devirtualization技术,一般是根据代码路径(有点像模板)预编译专业化的想法,但与检查,以选择正确的专长是在情况下,运行时选择它们不能在编译时选择(因为模板必须是).
(非常)基本的想法类似于以下内容...假设你有一个类C如下的类:
class C : public SomeInterface
{
public:
C(Foo * f) : _f(f) { }
virtual void quack()
{
_f->bark();
}
virtual void moo()
{
quack(); // a virtual call on this because quack() might be overloaded
}
// lots more virtual functions that call virtual functions on *_f or this
private:
Foo * const _f; // technically doesn't have to be const explicitly
// as long as it can be proven not be modified
}; …Run Code Online (Sandbox Code Playgroud) c++ compiler-construction virtual-functions vtable compiler-optimization