这意味着字节码来自不同的文件。
将来,我想要直接编译成字节码。
In the future, I might want to compile directly to bytecodes.
相反,它只运行生成的字节码。
获取待执行的下一个字节码。
这使对字节码的切片和切块变得容易。
一种广泛应用的机制称为字节码测试。
One mechanism that is widely used is known as byte-code instrumentation.
使用字节码和编译器后端
已编译代码和字节码是这16MB的一部分。
In this case the compiled code and bytecodes are part of the 16mb.
因此,执行字节码指令要比访问语法树节点快得多。
Therefore, executing a bytecode instruction is much faster than visiting a syntax tree node.
从本质上说,我是在实现自己的字节码即时检验器。
In essence, I was implementing my own on-the-fly validator for the bytecode.
实际上,AOP可以视作是操作字节码的高阶语言。
In fact, AOP can be seen as a high level language for bytecode manipulation.
字节码插装:该流程将字节码注入到应用程序类中。
Bytecode instrumentation: This is the process of injecting bytecode into the application classes.
您是否想转换方法,但是又不愿在字节码中启动程序呢?
Do you want to try transforming methods, but are reluctant to start programming in bytecode?
一个应用中有多少代码能转化成字节码依赖于几个因素。
How much of an applications code is turned into bytecode depends on a couple of factors.
如果成功地编译了源代码,就可以在JVM中执行字节码。
If you successfully compile the source code, you can execute the bytecode within a JVM.
将频繁使用的脚本保持为字节码形式可以帮助提升可观的性能。
Keeping frequently used scripts in bytecode form would give us a sizable performance boost.
另一个可产生快速执行代码的方法就是直接产生JVM字节码。
Another way to get fast executing code is to generate the JVM bytecode directly.
字节码工具:在运行时修改应用的字节码,以注入性能收集器。
Bytecode instrumentation: modifying the bytecode of an application at runtime to inject performance collectors.
在上一期文章中,我演示了如何用运行时字节码生成来代替反射。
In the earlier article, I demonstrated how run-time bytecode generation can be used to replace reflection.
一旦你的程序被编译成字节码,你就可以将他们编译为本地代码。
Once your program is compiled to bytecode, you can compile it to native code.
添加代码生成模型是为了让字节码生成更加模块化、更容易维护。
The code generation model was added to make the bytecode generation more modular and easier to maintain.
这很方便,如果不支持的话,编译器会一次生成基本兼容的字节码。
It is convenient, if unsupported, and the compiler generates mostly compatible bytecode in a single pass.
编译器在源代码中查找各种模式以便将源代码表达式转换为字节码。
A compiler looks for various patterns in the source to convert the source code expressions into bytecodes.
装入阶段包括:找到必要的类(通过查找每个类路径)并装入字节码。
The loading phase consists of locating the required class file (by searching though the respective classpaths) and loading in the bytecode.
这些字节码包括钩子方法的调用,这些方法包括管理探针运行的逻辑。
These byte codes include invocations to hook methods that contain the logic to manage the execution of the probes.
JVM解释字节码,而不是把字节码编译成机器码并直接执行机器码。
The JVM interpreted the bytecodes rather than compiling them to machine code and executing the machine code directly.
类装入器对于类的字节码要做许多检测,以确保格式正确、行为正确。
The class loader does a number of checks on the bytecodes of the class to ensure that it is well formed and well behaved.
字节码验证过程保证了应用程序不能访问内存空间或使用其域外的资源。
The bytecode verification process guarantees that an application cannot access memory spaces or use resources outside of its domain.
并且因为用于描述操作的字节码少于255个,所以实现的成本比较低。
And because fewer than 255 bytecodes are available to describe operations, the implementation cost is low.
创建同步代码块产生了16行的字节码,而创建同步方法仅产生了5行。
Creating the synchronized block yielded 16 lines of bytecode, whereas synchronizing the method returned just 5.
应用推荐