Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #6585 > unrolled thread

gcc and nasm

Started by"Bill Cunningham" <nospam@nspam.invalid>
First post2016-05-08 20:20 -0400
Last post2016-05-09 15:37 +0100
Articles 2 — 2 participants

Back to article view | Back to comp.programming


Contents

  gcc and nasm "Bill Cunningham" <nospam@nspam.invalid> - 2016-05-08 20:20 -0400
    Re: gcc and nasm BartC <bc@freeuk.com> - 2016-05-09 15:37 +0100

#6585 — gcc and nasm

From"Bill Cunningham" <nospam@nspam.invalid>
Date2016-05-08 20:20 -0400
Subjectgcc and nasm
Message-ID<ngoktd$lvj$1@dont-email.me>
    Is there a way I can use gcc and instead of using GAS nasm assembly 
would be produced? So I don't have to look at that horrific at&t syntax? 
Could the compiler read it and compile? I'm sure then the linker would know 
what to do.

Bill

[toc] | [next] | [standalone]


#6589

FromBartC <bc@freeuk.com>
Date2016-05-09 15:37 +0100
Message-ID<ngq73u$8cp$1@dont-email.me>
In reply to#6585
On 09/05/2016 01:20, Bill Cunningham wrote:
>     Is there a way I can use gcc and instead of using GAS nasm assembly
> would be produced? So I don't have to look at that horrific at&t syntax?
> Could the compiler read it and compile? I'm sure then the linker would know
> what to do.

I use:

   gcc -S -masm=intel -fverbose-asm

Or try this:

   http://gcc.godbolt.org/

where you type in C code on-line and it shows assembly output in either 
format (and for a compiler and target of your choice).

-- 
Bartc

[toc] | [prev] | [standalone]


Back to top | Article view | comp.programming


csiph-web