9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Disassembler?
Date: Fri,  2 May 2008 07:20:00 -0400	[thread overview]
Message-ID: <be3dc18c7847c519abde400e81609c6b@quanstro.net> (raw)
In-Reply-To: <FDDBD0C9-7A87-4C89-85F9-8242D7B63949@kix.in>

> Hi,
>
> Is there a tool available which can convert plan 9 a.out executables
> to plan 9 assembly code? I'd like to know how the C compiler stores
> arguments for a system call on the stack for x86.
>
> 8c -S does not help, since all it displays is: `call print', instead
> of what instructions are actually executed when print is called.
>
> Regards,
> Anant

if i understand you correctly, that's because print is in a library
and is called not inline.  you can use acid on the executable to
	asm(print)
which disassembles code starting at print.

- erik




  parent reply	other threads:[~2008-05-02 11:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-02 10:14 Anant Narayanan
2008-05-02 10:21 ` Pietro Gagliardi
2008-05-02 11:20 ` erik quanstrom [this message]
2008-05-02 11:32 ` Charles Forsyth
2008-05-02 11:53   ` Charles Forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=be3dc18c7847c519abde400e81609c6b@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).