From: Scott Wood <scottwood@freescale.com>
To: HongWoo Lee <hongwoo7@gmail.com>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: Question about powerpc branch instructions
Date: Fri, 7 Aug 2009 14:37:45 -0500 [thread overview]
Message-ID: <20090807193745.GA11681@b07421-ec1.am.freescale.net> (raw)
In-Reply-To: <4A7BEA04.7030006@gmail.com>
On Fri, Aug 07, 2009 at 05:47:00PM +0900, HongWoo Lee wrote:
> #2: Is b similar to the jmp in x86 ?
Yes, specifically a relative near jmp.
> and bl is similar to the call in x86 ?
Sort of (and again, specifically a relative near call). Call on x86
pushes the return address on the stack, while bl on powerpc puts the
return address in a special register (lr) that the called function has to
save on the stack itself if it wants to call another function.
-Scott
prev parent reply other threads:[~2009-08-07 19:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-07 8:47 Question about powerpc branch instructions HongWoo Lee
2009-08-07 8:52 ` Benjamin Herrenschmidt
2009-08-07 19:37 ` Scott Wood [this message]
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=20090807193745.GA11681@b07421-ec1.am.freescale.net \
--to=scottwood@freescale.com \
--cc=hongwoo7@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/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).