NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: nobody on September 29, 2008, 09:22:21 AM

Title: How to make gcc incorporate with NASM?
Post by: nobody on September 29, 2008, 09:22:21 AM
Hi, I'm using MinGW to compile my C code and new to NASM. I intend to make use of NASM as the inline assembler with gcc, cause I don't like the syntax which gcc assembler accept. How to make them work together? Can gcc link the binary output by nasm as external assembler?
Title: Re: How to make gcc incorporate with NASM?
Post by: nobody on September 29, 2008, 09:43:50 AM
> make use of NASM as the inline assembler with gcc

AFAIK impossible :-(

> don't like the syntax which gcc assembler accept.

AT&T sucks :-(

> How to make them work together?

Link.

> Can gcc link the binary output by nasm as external assembler?

Yes.
Title: Re: How to make gcc incorporate with NASM?
Post by: nobody on September 29, 2008, 09:47:33 AM
Actually LD, not GCC.
Title: Re: How to make gcc incorporate with NASM?
Post by: nobody on September 30, 2008, 03:09:53 PM
Thank you. I've got it. I'll try to link the binary instead of inline.