flat assembler
Message board for the users of flat assembler.

Index > Linux > Difference between GAS and FASM?

Author
Thread Post new topic Reply to topic
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 26 Jul 2004, 09:48
Tell me or show me the link ;)

--
Post 26 Jul 2004, 09:48
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 26 Jul 2004, 10:07
GAS is designed as a backend for GCC. It uses AT&T style mnemonics, and is generally harder to program for than FASM.
Post 26 Jul 2004, 10:07
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 26 Jul 2004, 10:39
gas2fasm.pl(or !$.sh) or binutils with FASM(of course, without GAS).

so don't let FASM obsolete, ATM.

Edit: oh, also i want to know which is faster.
Post 26 Jul 2004, 10:39
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 26 Jul 2004, 10:56
Quote:
binutils with FASM


We're not likely to see BINUTILS using FASM. The whole idea of binutils (and the other parts of GCC) are to provide a multi-cpu toolchain. FASM is limited to x86. And it's not GPL, so the FSF wouldn't like it anyway!
Post 26 Jul 2004, 10:56
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 26 Jul 2004, 12:51
then any other way to use with gcc and libc? ^.^?

--
about GPL: i see no problem with FASM as long as it's license >= GPL.


Last edited by fasm9 on 26 Jul 2004, 13:08; edited 1 time in total
Post 26 Jul 2004, 12:51
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 26 Jul 2004, 13:07
You can write code that can be linked with LIBC and GCC; a GCC backend that generates FASM code is not likely to be written though. For an example of using GCC with FASM, look at RetroForth/BeOS (http://www.retroforth.org/release/ and click on the BeOS logo). It's not hard to use libc at all
Post 26 Jul 2004, 13:07
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 26 Jul 2004, 13:28
still so far i haven't done something serious, i couldn't tell you what i have been experienced, but it surely will be long and tough way to me.

about RF7, you know, i have downloaded some of it, not yet extract. (lazy_grin)
Post 26 Jul 2004, 13:28
View user's profile Send private message Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 26 Jul 2004, 13:32
Quote:
about RF7, you know, i have downloaded some of it, not yet extract. (lazy_grin)


It's a lot nicer than the 6.x releases were: smaller, faster, better designed. And it successfully ran my rather large 141MB test program Smile
Post 26 Jul 2004, 13:32
View user's profile Send private message Visit poster's website Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 26 Jul 2004, 14:44
crc wrote:
FASM is limited to x86. And it's not GPL, so the FSF wouldn't like it anyway!

Fasm license fall into Artistic License category (BSD like) approved by the FSF. Wink
Post 26 Jul 2004, 14:44
View user's profile Send private message Yahoo Messenger Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 26 Jul 2004, 18:13
Quote:
Fasm license fall into Artistic License category (BSD like) approved by the FSF


I'm aware of that, but they are rather biased in favor of the GPL. They tolerate other licenses, but I have yet to see a case (outside of a few LGPL libraries) where they distribute/promote use of non-GPL licenses.
Post 26 Jul 2004, 18:13
View user's profile Send private message Visit poster's website Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 26 Jul 2004, 19:25
Some cases: (in no particular order)
Apache
Python
Mozilla
Perl
PHP
Post 26 Jul 2004, 19:25
View user's profile Send private message Yahoo Messenger Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica 28 Jul 2004, 12:35
[OT]gas supports an (sadly undocumened) asm syntax stuyle too -via 'asm ".intel_syntax"' (never forget to add '.att_syntax' after you're done with intel style - or the rest of the gas will explode;)). I woner if it would be possible to make add ".fasm_syntax" and have the linker invoke fasm instead of (g)as when parsing the code.... (should work, but I don't have the time to play with yet another source tree...)[/OT]
Post 28 Jul 2004, 12:35
View user's profile Send private message Visit poster's website Reply with quote
crc



Joined: 21 Jun 2003
Posts: 637
Location: Penndel, PA [USA]
crc 28 Jul 2004, 12:47
Quote:
I woner if it would be possible to make add ".fasm_syntax" and have the linker invoke fasm instead of (g)as when parsing the code....


That would be interesting to see, but I don't have the time to learn the LD/GAS source code...
Post 28 Jul 2004, 12:47
View user's profile Send private message Visit poster's website Reply with quote
fasm9



Joined: 19 Jun 2003
Posts: 439
fasm9 19 Aug 2004, 01:49
Hi, here is good tool to convert GAS to NASM!!!

so it obviously easy to nasm to FASM! :D

http://www.multimania.com/placr/a2i.html

Edit: Note that there is some limitation in Math instructions.

--
Thanks to the Author!
Post 19 Aug 2004, 01:49
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.