How to produce nasm compatible code by compiling with gcc

  • Follow


How do I produce nasm compatible code by compiling a C program using gcc ?
I have seen that gcc produces GAS code, and nasm doesn't seem to
understand it.

Francesco

0
Reply Francesca 4/6/2005 6:47:21 PM

Francesca wrote:
> 
> How do I produce nasm compatible code by compiling a C program using gcc ?
> I have seen that gcc produces GAS code, and nasm doesn't seem to
> understand it.
> 
> Francesco

Hi Francesca/Francesco,

I don't think you *can* get Nasm syntax out of gcc. Using
"-mintel_syntax" may help a little, but Nasm's syntax is
"similar" to Intel, not "true Intel syntax"...

There was a project on SourceForge to convert gcc to using
Nasm as a "back end" - perhaps allow inline Nasm syntax, too
- but it doesn't seem to have gone anywhere...

There are a couple "converters"... one called "a2i", and one
called "intel2gas" (which works in the other direction,
too).

http://membres.lycos.fr/placr/a2i.html
http://www.niksula.cs.hut.fi/~mtiihone/intel2gas/

Perhaps one of those will help?

Best,
Frank

P.S. Downloaded GAMBAS, but couldn't get it to build... I'm
workin' on it!

0
Reply Frank 4/6/2005 8:50:23 PM


> http://membres.lycos.fr/placr/a2i.html
> http://www.niksula.cs.hut.fi/~mtiihone/intel2gas/
> 
> Perhaps one of those will help?

I'll try them, thank you a lot.
 
> Best,
> Frank
> 
> P.S. Downloaded GAMBAS, but couldn't get it to build... I'm
> workin' on it!

Maybe you have to download gambas 1.0.4 and other packages you can find in
www.kudla.org, exactly here:
http://www.kudla.org/index.php?wl_mode=more&wl_eid=74

If you are interested, I can put my little IDE in www.gambas-italia.net;
just now the site is empty.

Francesco

0
Reply Francesca 4/7/2005 6:25:23 PM

Francesca wrote:

> > P.S. Downloaded GAMBAS, but couldn't get it to build... I'm
> > workin' on it!
> 
> Maybe you have to download gambas 1.0.4 and other packages you can find in
> www.kudla.org, exactly here:
> http://www.kudla.org/index.php?wl_mode=more&wl_eid=74

I grabbed the source package... I'll try to pick a binary
package that'll run on my system...

> If you are interested, I can put my little IDE in www.gambas-italia.net;
> just now the site is empty.

Shame to have the site sitting there empty! There's some
interest in an IDE for Nasm under Linux, so if you're
willing to share what you've got, I'm sure some people would
like to look at it!

Best,
Frank

0
Reply Frank 4/9/2005 9:42:42 AM

> 
> Shame to have the site sitting there empty! There's some
> interest in an IDE for Nasm under Linux, so if you're
> willing to share what you've got, I'm sure some people would
> like to look at it!
> 
> Best,
> Frank

Hi, I have put the IDE, and you can download it here:
http://www.gambas-italia.net/progetti/ide-nasm-0.0-39mdk.noarch.rpm

Well, only if my computer is turned on :-) 

Francesco



0
Reply Francesca 4/9/2005 5:43:21 PM

Francesca wrote:

> Hi, I have put the IDE, and you can download it here:
> http://www.gambas-italia.net/progetti/ide-nasm-0.0-39mdk.noarch.rpm
> 
> Well, only if my computer is turned on :-)

Thanks, Francesco! I've got it, but still no joy with
GAMBAS. From time to time, I get a message from my mail
agent that I need to make room on my hard drive before I can
download mail, so I despair of fixing all those "failed
dependencies" until I upgrade to a larger HD. I've been
promising myself I'll get to that "real soon now" for...
ages... I'll be in the mood "real soon now", I'm sure... :)

Meanwhile, I'll make some other people aware of it and see
if I can get some feedback. As I mentioned, a number of
people have asked if there's an IDE for Nasm/Linux, so your
"ide-nasm" might gain some popularity. Who knows?

Best,
Frank

0
Reply Frank 4/18/2005 5:01:42 AM

On Mon, 18 Apr 2005 05:01:42 +0000 (UTC)
Frank Kotler  <spamtrap@crayne.org> wrote:

> Francesca wrote:
> 
> > Hi, I have put the IDE, and you can download it here:
> > http://www.gambas-italia.net/progetti/ide-nasm-0.0-39mdk.noarch.rpm
> > 
> > Well, only if my computer is turned on :-)
> 
> Thanks, Francesco! I've got it, but still no joy with
> GAMBAS. From time to time, I get a message from my mail
> agent that I need to make room on my hard drive before I can
> download mail, so I despair of fixing all those "failed
> dependencies" until I upgrade to a larger HD. I've been
> promising myself I'll get to that "real soon now" for...
> ages... I'll be in the mood "real soon now", I'm sure... :)

Oh, I know that problem. "It depends"... and it sucks.

0
Reply Johannes 4/19/2005 6:50:08 PM

6 Replies
262 Views

(page loaded in 1.38 seconds)

Similiar Articles:













7/24/2012 3:30:57 AM


Reply: