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


Groups > comp.programming > #6589

Re: gcc and nasm

From BartC <bc@freeuk.com>
Newsgroups comp.programming
Subject Re: gcc and nasm
Date 2016-05-09 15:37 +0100
Organization A noiseless patient Spider
Message-ID <ngq73u$8cp$1@dont-email.me> (permalink)
References <ngoktd$lvj$1@dont-email.me>

Show all headers | View raw


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

Back to comp.programming | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

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

csiph-web