作业帮 > 综合 > 作业

英语翻译14.2.AN OVERVIEW OF BYTECODE TRANSFORMATIONBytecode tran

来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/05/13 00:40:19
英语翻译
14.2.AN OVERVIEW OF BYTECODE TRANSFORMATION
Bytecode transformation is an example of a late code modification technique [21],targeting an executable program after compilation.Traditional late code modification systems suffer for lack of certain useful information available only in source code.However,Java classfiles retain symbolic information that enables a wide range of transformations.Additionally,bytecode transformation can be used on code for which source is not available.
Bytecode transformation can make a wide array of changes to a target class,including adding or removing fields,methods,or constructors; changing the superclass,changing the types or signatures of fields or methods,redirecting method invocations to new targets,and inserting new code into methods at arbitrary points.
Bytecode transformation can take place at any point,from initial class creation by the compiler to class loading.This section discusses transformation at two important stages in the lifecycle:static transformation,performed immediately after compilation when the entire program is complete,present,and visible,and dynamic transformation,performed at load time,one class at a time at the client.Static transformation allows transformations based on knowledge of the entire program,while dynamic transformation enables transformations that are aware of the run-time environment.
14.2.1.Static Transformation
Static transformation occurs after compilation and operates on class files on disk,writing the changes back and thus making them durable until the classes are recompiled.The entire program might be present when the system applies the transformation (the "closed-world" assumption).This means that no unseen classes subclass application classes and that the application does not dynamically load new classes.If so,a range of more sophisticated inter-method and inter-class optimizations and analyses is possible.This is similar to link-time optimizers [19],which use whole-program analysis to enable the optimizations they perform.Even without the closed-world assumption,the transformer can use information present in the classfile to determine and manipulate the class hierarchy.Interprocedural analysis can reveal valid targets for inlining or parameter elimination; dead code removal can remove unused code,methods,or even classes.
Transforming statically,rather than during the loading process,shifts transformation out of the critical path.Running the transformation at this point makes it unnecessary to run at load time; if the developer is certain that the transformation is necessary,then performing the transformation after compiling is advantageous.
英语翻译14.2.AN OVERVIEW OF BYTECODE TRANSFORMATIONBytecode tran
14.2 .概述字节转型
字节码转型是一个典型的后期代码修改技术[ 21 ] ,针对一个可执行程序后,汇编.传统晚代码修改系统忍受缺乏某些有用的资料,只有在源代码.不过,华classfiles保留象征性资料,使得各种各样的转变.此外,字节码变换,可用于对代码为来源不详.
字节码的转化,可以做出各种各样的变化,以一个目标阶层,包括加入或删除领域,新方式,还是建设者;改变超类,改变类型或签字的领域或方法,调整方法调用,以新的目标,并加入新的代码进入的方法,在任意点.
字节码的转化可以发生在任何一点,从最初的阶级创造编译类加载.本节讨论在转型的两个重要阶段的生命周期:静态转型,演出后,立即汇编时,整个程序完成之后,现在和可见的,动态转化,表现在负载的时候,一个班的时候,在客户端.静态转型,使变革以知识为基础的整个程序,而动态转化,使变革都知道的运行时间环境.
14.2.1 .静态转型
静态转型发生后,汇编和运行在类文件在磁盘上,以书面的变化,背部及令他们持久,直到班都是重新编译.整个程序可能会被本时,该系统适用于转换( "封闭世界"的假设) .这意味着不再需要看不见的班子类应用班,并指出,该申请并不动态地载入新的班级.如果是的话,射程更精密的跨方法及跨级优化和分析是有可能的.这是类似的连接时间优化器[ 19 ] ,其中利用总体规划的分析,以便优化他们的表现.即使没有封闭世界假设,变压器,可利用信息网络,目前在classfile确定者和操纵者类层次.跨过程分析可以发现有效的目标inlining或参数消除死代码清除,才能消除闲置代码,方法,甚至班级.
阿拉伯文到英语朝鲜语到英语德语到法语德语到英语俄语到英语法语到德语法语到英语荷兰语到英语葡萄牙语到英语日语到英语西班牙语到英语希腊语到英语意大利语到英语英语到阿拉伯文英语到朝鲜语英语到德语英语到俄语英语到法语英语到荷兰语英语到葡萄牙语英语到日语英语到西班牙语英语到希腊语英语到意大利语英语到中文(繁体)英语到中文(简体)中文到英语中文(繁体到简体)中文(简体到繁体)
更好的翻译建议
Google 翻译提供翻译建议.我们会利用您的建议在将来更新我们的系统时提高翻译质量.字节码的转化可以发生在任何一点,从最初的阶级创造编译类加载.本节讨论在转型的两个重要阶段的生命周期:静态转型,演出后,立即汇编时,整个程序完成之后,现在和可见的,动态转化,表现在负载的时候,一个班的时候,在客户端.静态转型,使变革以知识为基础的整个程序,而动态转化,使变革都知道的运行时间环境.
14.2.1 .静态转型
静态转型发生后,汇编和运行在类文件在磁盘上,以书面的变化,背部及令他们持久,直到班都是重新编译.整个程序可能会被本时,该系统适用于转换( "封闭世界"的假设) .这意味着不再需要看不见的班子类应用班,并指出,该申请并不动态地载入新的班级.如果是的话,射程更精密的跨方法及跨级优化和分析是有可能的.这是类似的连接时间优化器[ 19 ] ,其中利用总体规划的分析,以便优化他们的表现.即使没有封闭世界假设,变压器,可利用信息网络,目前在classfile确定者和操纵者类层次.跨过程分析可以发现有效的目标inlining或参数消除死代码清除,才能消除闲置代码,方法,甚至班级.
改造静,而不是在加载过程中,轮班转化出来的关键路径.运行转变在这一点上,使不必要的运行负荷时间,如果开发商是肯定的是,变革是必要的,则表演了改造后,编制是有利的.