Author Topic: Compiler that works in Ubuntu ?  (Read 8999 times)

anta40

  • Member
  • ***
  • Posts: 312
Re: Compiler that works in Ubuntu ?
« Reply #15 on: December 05, 2012, 07:09:02 PM »
Why no mention of the GNU assembler?

Probably because gas is intended to be feed from compiler output?
I read this somewhere else, can't remember the exact source though.

Of course, nobody stop you from using gas.

MichaelW

  • Global Moderator
  • Member
  • *****
  • Posts: 1209
Re: Compiler that works in Ubuntu ?
« Reply #16 on: December 05, 2012, 07:37:29 PM »
Probably because gas is intended to be feed from compiler output?

It was, with the AT&T syntax, but GAS has for a long time supported an Intel syntax, that at least for the Windows versions is based on a MASM 6.0 grammar, so the syntax is very similar to MASM (although there is no high-level syntax). Unfortunately, the macro system is not at all similar and weak by comparison.
Well Microsoft, here’s another nice mess you’ve gotten us into.

Gunther

  • Member
  • *****
  • Posts: 3585
  • Forgive your enemies, but never forget their names
Re: Compiler that works in Ubuntu ?
« Reply #17 on: December 06, 2012, 05:45:38 AM »
It was, with the AT&T syntax, but GAS has for a long time supported an Intel syntax, that at least for the Windows versions is based on a MASM 6.0 grammar, so the syntax is very similar to MASM (although there is no high-level syntax). Unfortunately, the macro system is not at all similar and weak by comparison.

Yes. GAS makes a good job and you've the specific assembly language feeling of the older days. I've seen some code, made by Intel, using GAS.

Gunther
Get your facts first, and then you can distort them.