作者:hengldkslf | 来源:互联网 | 2023-05-18 12:48
Edit:NodeusesbytecodesinceNode8.3,beforethat,sourceswerecompileddirectlytomachinecode
Edit: Node uses bytecode since Node 8.3, before that, sources were compiled directly to machine code.
编辑:节点使用自Node 8.3以来的字节码,在此之前,源代码直接编译为机器代码。
I do a lot of Python coding, and there's always bytecode lying around in .pyc files.
我做了很多Python编码,并且.pyc文件中总是存在字节码。
I was wondering if node stores its machine code in similar files, eg it would make sense to keep the machine code representation around on disk and re-use it if a file's source is unchanged.
我想知道节点是否将其机器代码存储在类似的文件中,例如,将机器代码表示保存在磁盘上并在文件源不变的情况下重新使用它是有意义的。
If so, where does node/v8 store this machine code?
如果是这样,node / v8在哪里存储此机器代码?
Edit 2: As @dystroy mentions below this is a dupe of How can I see the machine code generated by v8?
编辑2:正如@dystroy下面提到的这是一个骗局我如何看到v8生成的机器代码?
3 个解决方案