是否有任何方法可以像在Assembly中一样从Java访问/修改cpu的寄存器? (eax,rip,ax等)我不知道它是否会以任何方式有用,但我认为它会非常有趣。
有没有办法获得变量的“保存点”,如c / c ++:
&variable在此先感谢,我希望你明白我的意思。
Is there any way to access / modify the cpu's registers from Java just like in Assembly? (eax, rip, ax, etc.) I don't know if it would be useful in any way, but I think it would be quite interesting.
And is there a way to get the "save point" of variables like in c / c++:
&variableThanks in advance, I hope you've understood what I mean.
最满意答案
简答: 不
Java以跨平台字节代码编译。 装配是特定于平台的。
关于“保存点”,它们在c / c ++中称为指针,在Java中,您正在操作引用。
有关指针和引用的更多详细信息,请参阅Java中的指针
Short answer : No
Java is compiled in a cross-plateform byte code. Assembly is plateform specific.
Regarding the "save point" they are called pointers in c/c++, and in Java, you are manipulating references.
For more details about pointers and references, see Pointers in Java
更多推荐
发布评论