我正在学习 x86 asm 并使用 masm,并且正在尝试编写一个与以下 c 函数具有等效签名的函数:
void func(double a[], double b[], double c[], int len);
我不确定如何实施?
asm 文件将被编译成一个 win32 DLL。
为了让我能理解如何做到这一点,有人可以帮我把这个非常简单的函数翻译成 asm:
void func(double a[], double b[], double c[], int len)
{
// a, b, and c have the same length, given by len
for (int i = 0; i < length; i++)
c[i] = a[i] + b[i];
}
我尝试在 C 中编写这样的函数,对其进行编译,然后使用 OllyDbg 在 exe 中查看相应的反汇编代码,但我什至在其中找不到我的函数。
非常感谢你。