lkml.org 
[lkml]   [1999]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: asm debugger for linux?
Siddharth Srivastava wrote:
>
> are there any asm debuggers avaliable for linux??
> i need it badly for some code optimization

Three possibilities:
1) gcc -S file.c (creates file.s)
2) gdb
3) objdump --disassemble

gcc -S is probably the easiest to work with, as it still contains labels
and other information that is basically stripped or transformed by the
assembler. Note that all three use AT&T assembly syntax. If you are
used to Intel syntax then there will be a bit of a learning curve (src
and dest operands are reversed and pointers are handled differently),
but IMHO AT&T syntax is more intuitive and _much_ easier to read than
Intel's syntax.

--

Brian Gerst

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.038 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site