在xcode 8.0中,我有一个包含ARM汇编代码块的s文件。我想从我的Swift代码中调用这个汇编函数并传递一个指针。我该怎么做?
下面是我在Objective-C中完成相同操作的方法:
void my_asm_function(int *myptr); //this is prototype in my h-file
my_asm_function(&myIntVar); // this is how i call the function from my obj-c code
在xcode 8.0中,我有一个包含ARM汇编代码块的s文件。我想从我的Swift代码中调用这个汇编函数并传递一个指针。我该怎么做?
下面是我在Objective-C中完成相同操作的方法:
void my_asm_function(int *myptr); //this is prototype in my h-file
my_asm_function(&myIntVar); // this is how i call the function from my obj-c code