flat assembler
Message board for the users of flat assembler.
Index
> Linux > Difference between GAS and FASM? |
Author |
|
fasm9 26 Jul 2004, 09:48
Tell me or show me the link ;)
-- |
|||
26 Jul 2004, 09:48 |
|
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.
|
|||
26 Jul 2004, 10:07 |
|
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. |
|||
26 Jul 2004, 10:39 |
|
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 |
|||
26 Jul 2004, 12:51 |
|
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
|
|||
26 Jul 2004, 13:07 |
|
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) |
|||
26 Jul 2004, 13:28 |
|
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 |
|||
26 Jul 2004, 13:32 |
|
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. |
|||
26 Jul 2004, 14:44 |
|
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. |
|||
26 Jul 2004, 18:13 |
|
pelaillo 26 Jul 2004, 19:25
Some cases: (in no particular order)
Apache Python Mozilla Perl PHP |
|||
26 Jul 2004, 19:25 |
|
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]
|
|||
28 Jul 2004, 12:35 |
|
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... |
|||
28 Jul 2004, 12:47 |
|
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! |
|||
19 Aug 2004, 01:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.