将JIT转换为EXE? [英] convert JIT to EXE?

查看:57
本文介绍了将JIT转换为EXE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于那里有许多JIT实现,因此每个JIT都会发出本机代码.那么为什么没有人制作像JIT2EXE这样的工具来将本机代码保存到本机可执行文件呢?

Since so there are so many JIT implementation out there, every JIT emits native code. Then why hasn't someone made a tool like JIT2EXE, to save the native code to a native executable?

推荐答案

这个问题有点含糊,因为您没有明确指定您在说什么语言.在我的.NET中,.NET可执行文件是预编译的.为了加快加载时间,在运行时添加了抖动.可以通过称为NGEN的过程将代码生成为本机代码,该过程采用.NET IL代码并将其转换为二进制的过程(处理器可以理解该二进制过程).通常,NGEN代码存储在"C:\ Windows \ Assembly \ NativeImages_ {version} "文件夹中,其中该版本代表.NET Framework版本.在Jeffrey Richter的 CodeGuru 上了解一下NGEN,以及其中的内容它可以使用以及何时使用.在 Codeproject 上查看有关此文章的统计数据/本机比较二进制代码以及Daniel Pistelli的此处.

The question is kind of vague as you have not clearly specified what language you are talking about, in my area of .NET, the .NET executables are pre-jitted at runtime in order to speed up the loading times. The code can be generated to native code by a process known as NGEN which takes the .NET IL code and converts it in the process of a binary in which can be understood by the processor. Usually NGEN code are stored in the folder within 'C:\Windows\Assembly\NativeImages_{version}' where the version represents the .NET Framework version. Have a look here on CodeGuru by Jeffrey Richter, about NGEN and where it could be used and when to use it. Have a look here on Codeproject about this article on the statistics/comparisons with native binary code and also here as well by Daniel Pistelli.

这篇关于将JIT转换为EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆