摘要:
JNI(java native interface):即java本地调用C的接口。先看整体运行:下面是过程:#vim test.java 1 public class test{ 2 3 public native static int add(int a, int b); //... 阅读全文
摘要:
汇编取出内存中的值 1 # include 2 3 int main() 4 { 5 int i = 100; 6 int ret = 0; 7 8 int *p = &i; 9 //ret = *p;10 __a... 阅读全文
摘要:
打印hello world并改变变量i的值 1 # include 2 3 int main() 4 { 5 int i = 0; 6 __asm__( 7 "mov %0, #4\n" 8 :"=r... 阅读全文