Page 1 of 1

mixing C and assembler

Posted: Fri Jul 19, 2002 11:00 pm
by john
can anybody please show me an running example code of calling a function written in assembler from a C program, and all this under Linux with the nasm assembler?
I've tested some examples found in the Internet but I didn't got one running (including the one from this site). I always got the error:
   # file not recognized: File format not recognized

what's wrong???

Thank's for help

RE:mixing C and assembler

Posted: Fri Jul 19, 2002 11:00 pm
by Chase
Did you read the warning in the guide on this site that makes it work under Linux?