那么如何将静态编译的代码链接到生成的类呢?
So how can I link the statically compiled code to the generated class?
对于每次只编译一个类的静态编译器,我们很幸运。
With a static compiler that only compiled one class at a time, we'd be out of luck.
服务实现的标准方法通常假设服务客户具有服务定义文件的静态编译。
A standard approach to service implementations often assumes static compilation of the service definition files with the service consumer.
这样静态编译的代码就可以直接调用方法,即使方法只有到了运行时才能真正实现。
The statically compiled code can then make direct calls to methods, even though the methods won't actually be implemented until runtime.
对动态编译器而言,编译器自身作出决策,而对于静态编译器,由开发人员作出选择。
For dynamic compilers, the compiler itself makes this decision, whereas for static compilers, the selection is up to the developer.
不幸的是,从设计之初,LLVM就是被作为一个静态编译器,优化器以及后端。
Unfortunately, LLVM in its current state is really designed as a static compiler optimizer and back end.
静态编译可以产生最佳的交互式性能,因为没有运行时编译行为来影响用户预期的响应时间。
Interactive performance is best covered by static compilation because no run-time compilation activity interferes with the user's response-time expectations.
当抛出一个表达式的时候,被抛出对象的静态编译时类型将决定异常对象的类型。
When an exception is thrown, the static, compile-time type of the thrown object determines the type of the exception object.
像这样的优化在静态编译环境中是不可能的,因为关于锁使用模式的信息在静态编译时得不到。
An optimization like this would not be possible in a statically compiled environment because the information about lock usage patterns is not available at static compilation time.
所生成的可执行文件嵌入了所有已编译的Ruby代码,当然也包括静态编译的MacRuby。
Produced executables embed all the compiled Ruby code as well as MacRuby, statically.
使用静态编译时,库中的代码与应用程序合并在一起(从而使可执行文件变得很庞大)。
Using static compilation, the code in the library combines with the application (which can have the downside of making the executable very large).
您可能认为对所有的代码进行静态编译是最好的方法,因为可以在运行时执行最大数量的本地代码。
You might think that compiling all the code statically is the best approach because it results in the largest amount of native code executing at run time.
人们经常将JIT(及时)之间的关系和静态编译,但是这比较常常迷惑我,都有多的实用的实现。
Often people compare this to the relationship between JIT (Just-In-Time) and static compilation, but this comparison would often confuse me, as both have more than practical implementations.
基本的解决方案是定义可以用静态编译的代码访问的基类或者接口,然后生成的类扩展这个基类或者实现这个接口。
The basic solution is to define a base class or interface that can be accessed by the statically compiled code, then extend that base class or implement that interface in the generated class.
静态编译器直接把源代码转换成可以直接在目标平台上执行的机器代码,不同的硬件平台要求不同的编译器。
A static compiler converts source code directly to machine code that can be directly executed on the target platform, and different hardware platforms require different compilers.
唯一重要的一项是,我需要确保“B和T”动态创建的(而不是他们的成员)是“等效”虽然那些静态编译时,编译。
The only important item is that I need to be sure that the "b and t" dynamically created (not their members) are "equivalent" tho those that were statically compiled when a was compiled.
每次只能有一个MPM是活动的,必须使用 --with-mpm=(worker|prefork|event)静态编译。
Only one MPM can be active at one time, and it must be compiled in statically with --with-mpm=(worker|prefork|event).
您可以在多种不同的媒体中(从静态文件到经过编译的代码)存储VXML。
You can store your VXML in several different mediums, from a static file to compiled code.
静态语言的另外一个小的好处就是编译时期的额外检查。
Another small benefit of static languages is the extra checking the compiler performs.
一定要记住,在使用静态断言时,检查的表达式在编译时必须是可计算的。
While using static assertions, always remember that the expression being checked must be evaluable at compile time.
那么您能否在不需重新编译而且保持静态类型的前提下添加新数据类型和新操作?
Can you then add new data types and new operations without recompiling and retain static types?
静态SQL语句是在执行之前预编译并绑定到一个包上的。
The static SQL statement is pre-compiled and bound to a package before execution.
静态断言建立在这个基本概念之上,只不过静态断言仅在编译时有效。
Static assertions build on this basic concept, except that static assertions are valid only at compile time.
最近几年来,开发环境开始更好地利用编译循环和静态类型提供的信息。
In recent years, development environments began taking even more advantage of the information provided by the compile cycle and static typing.
要部署框架,需要把框架的编译类以及静态HTML文件和其他资源封装到一个文件夹中,结构类似 WAR文件。
To deploy the framework, you package the compiled classes for the framework along with static HTML files and other resources in a folder structured as an exploded WAR file.
静态JSP包含在编译时解析。
问题是,这行代码是在编译时绑定的,这就太静态了。
The problem is that this line of code gets bound at compile time, and that's too static.
静态类型语言在编译时实施类型。
与专用的源代码静态分析工具相比,编译器的此项功能比较有限,但值得一试。
Compared to dedicated source-code static analysis tools, the functionality is usually limited, but worth trying.
编译器完全禁止在静态方法和静态内部类中引用封闭类型参数。
Referring to enclosing type parameters inside static methods and static inner classes is prohibited outright by the compiler. So, for instance, the following code is illegal in tiger.
应用推荐