From: Jacques MENU <Jacques.Menu@epfl.ch>
To: linuxppc-dev@lists.linuxppc.org
Subject: Linux/PPC assembly language documentation ?
Date: Thu, 16 Nov 2000 14:56:18 +0100 [thread overview]
Message-ID: <200011161356.HAA11163@lists.linuxppc.org> (raw)
Hi folks,
I'm doing work on GNU Prolog that features a ppc_linux.c file, generating code the way shown below.
I'd like to find a description of ''@ha' and '@l' used in instructions like :
addis 9,0,.Lcont001@ha
and
addi 9,9,.Lcont003@l
Please answer by email too since I'm not yet a member of this list. Thanks a lot !
Regards,
____________________
void
Pl_Call(char *label)
{
#ifndef MAP_REG_CP
Inst_Printf("addis", "9,0,.Lcont%d@ha", w_label);
Inst_Printf("addi", "9,9,.Lcont%d@l", w_label);
Inst_Printf("stw", "9,%s", asm_reg_cp);
#else
Inst_Printf("addis", "%s,0,.Lcont%d@ha", asm_reg_cp, w_label);
Inst_Printf("addi", "%s,%s,.Lcont%d@l", asm_reg_cp, asm_reg_cp, w_label);
#endif
Pl_Jump(label);
Label_Printf(".Lcont%d:", w_label++);
#ifndef MAP_REG_E
if (use_envir)
Inst_Printf("lwz", "%s,%d(%s)", asm_reg_e, MAP_OFFSET_E, asm_reg_bank);
#endif
}
--
Dr Jacques MENU
CUI - Université de Genève
Tel: ++ 41 21 693 45 87
mailto:Jacques.Menu@cui.unige.ch
http://cui.unige.ch/~menu/1804
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next reply other threads:[~2000-11-16 13:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-16 13:56 Jacques MENU [this message]
2000-11-16 19:04 ` Linux/PPC assembly language documentation ? Neil Russell
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=200011161356.HAA11163@lists.linuxppc.org \
--to=jacques.menu@epfl.ch \
--cc=linuxppc-dev@lists.linuxppc.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).