Mailinglist Archive: opensuse-programming (27 mails)
| < Previous | Next > |
Re: [opensuse-programming] Which assembler ?
- From: Jerry Feldman <gaf@xxxxxxx>
- Date: Fri, 01 Jan 2010 08:27:12 -0500
- Message-id: <4B3DF830.8050309@xxxxxxx>
On 12/30/2009 02:45 PM, Per Jessen wrote:
to find an assembler that support the macros and syntax you already have.
I wouild probably also recommend gas because it is tightly bound to GCC.
Would it be possible to convert some of those modules to C. Most C
compilers support the ASM() directive. While there are certainly some
very good reasons to write in assembler, with today's chips the need is
much less. (Thankfully you don't have to convert it to IA64 assembler).
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
Petr Baudis wrote:Based on your comment about having to rewrite, I would recommend trying
On Wed, Dec 30, 2009 at 07:01:28PM +0100, Per Jessen wrote:[snip]
Which assembler do I pick for i386 and x86_64 ?
I'm not really familiar with yasm, lzasm or fasm, but I personally useContinued support and in particular development would be important for
this rule of thumb:
(i) If I have bunch of Intel-syntax assembler source I need to
compile, or I need to do something very raw, I use nasm.
(ii) Otherwise, I use gas.
I think these two projects are most likely to never fall out of
maintenance and continue gaining support for whatever new
architectures and instructions coming by (especially gas is virtually
guaranteed to stay alive as long as GNU/Linux does),
my decision too, yes.
and they are usually installed on any Linux with a developmentI have not yet gathered sufficient experience with any of the others,
toolchain, so I wonder what compelling advantages the other assemblers
have.
only TASM (for the i386 platform), but because I might be rewriting
many tens-of-thousands lines of code, productivity is important, i.e. I
want an assembler that supports more than just the odd function written
in assembler.
gas uses very different syntax from what the Intel assembly hackers
are used to, but it's worth learning it - you will gain access to
assembly of pretty much any architecture out there, you can use the
integrated assembly support in gcc, you can read gdb's disass output,
etc etc.
to find an assembler that support the macros and syntax you already have.
I wouild probably also recommend gas because it is tightly bound to GCC.
Would it be possible to convert some of those modules to C. Most C
compilers support the ASM() directive. While there are certainly some
very good reasons to write in assembler, with today's chips the need is
much less. (Thankfully you don't have to convert it to IA64 assembler).
--
Jerry Feldman <gaf@xxxxxxx>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
| < Previous | Next > |