Message board for the users of flat assembler.
> Windows > How to Complie and linking?
//HERE IS THE main.c
int sum(int a,int b);
result = sum(150,350);
printf("The sum is %d\n",result);
;HERE IS THE sum.asm in NASM
mov eax,ebx ; return value
I know how to complie and linking in linux. My Q is how to do the same thing in windows using FASM
|28 Jun 2009, 15:38||
Well, I would say, make a coff ( .obj) out of your sum.asm and link it to your main. For compiling the c file you should use mingw or cygwin. afaik there are samples of coff in the fasm win32 package.
|28 Jun 2009, 15:50||
look at "High Level Languages" section of this forum, into "About this section" thread, and follow to examples.
|28 Jun 2009, 19:04||
Thanks vid for pointing me to the right place. It helps!
|29 Jun 2009, 05:18||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar.
Powered by rwasa.