Author Topic: How to make gcc incorporate with NASM?  (Read 8803 times)

nobody

  • Guest
How to make gcc incorporate with NASM?
« 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?

nobody

  • Guest
Re: How to make gcc incorporate with NASM?
« Reply #1 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.

nobody

  • Guest
Re: How to make gcc incorporate with NASM?
« Reply #2 on: September 29, 2008, 09:47:33 AM »
Actually LD, not GCC.

nobody

  • Guest
Re: How to make gcc incorporate with NASM?
« Reply #3 on: September 30, 2008, 03:09:53 PM »
Thank you. I've got it. I'll try to link the binary instead of inline.