* [ECOS] code questions:
@ 2002-07-03 23:17 zhlg_shuhan
2002-07-04 5:37 ` Jose Souto
0 siblings, 1 reply; 3+ messages in thread
From: zhlg_shuhan @ 2002-07-03 23:17 UTC (permalink / raw)
To: ecos-discuss
here is a assemble subroutine of PPC:
#define HAL_LSBIT_INDEX(index, mask) \
asm ( "neg 11,%1;" \
"and 11,11,%1;" \
"cntlzw %0,11;" \
"subfic %0,%0,31;" \
: "=r" (index) \
: "r" (mask) \
: "r11" \
);
could you tell me means of such as %1,%0,:,"=r" and so on, and where to get more info?
i search them in processor mannul and gnu toolkit to look for them,but failed.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [ECOS] code questions:
2002-07-03 23:17 [ECOS] code questions: zhlg_shuhan
@ 2002-07-04 5:37 ` Jose Souto
0 siblings, 0 replies; 3+ messages in thread
From: Jose Souto @ 2002-07-04 5:37 UTC (permalink / raw)
To: ecos-discuss
Hi,
Check http://www.tldp.org/HOWTO/Assembly-HOWTO/gcc.html
and associated links.
Jose Luiz
zhlg_shuhan@sohu.com wrote:
> here is a assemble subroutine of PPC:
>
> #define HAL_LSBIT_INDEX(index, mask) \
> asm ( "neg 11,%1;" \
> "and 11,11,%1;" \
> "cntlzw %0,11;" \
> "subfic %0,%0,31;" \
> : "=r" (index) \
> : "r" (mask) \
> : "r11" \
> );
>
> could you tell me means of such as %1,%0,:,"=r" and so on, and where to get more info?
> i search them in processor mannul and gnu toolkit to look for them,but failed.
>
> --
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [ECOS] code questions:
@ 2002-07-03 23:42 aacquaviva
0 siblings, 0 replies; 3+ messages in thread
From: aacquaviva @ 2002-07-03 23:42 UTC (permalink / raw)
To: zhlg_shuhan; +Cc: ecos-discuss
Take a look in the GNU toolkit manual, GNUPro Compiler Tools. See page 177:
Assembler instructions with C expression operands.
Andrea.
-----Original Message-----
From: ecos-discuss-owner@sources.redhat.com [mailto:ecos-discuss-
owner@sources.redhat.com]On Behalf Of zhlg_shuhan@sohu.com
Sent: Wednesday, July 03, 2002 11:17 PM
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] code questions:
here is a assemble subroutine of PPC:
#define HAL_LSBIT_INDEX(index, mask) \
asm ( "neg 11,%1;" \
"and 11,11,%1;" \
"cntlzw %0,11;" \
"subfic %0,%0,31;" \
: "=r" (index) \
: "r" (mask) \
: "r11" \
);
could you tell me means of such as %1,%0,:,"=r" and so on, and where to get
more info?
i search them in processor mannul and gnu toolkit to look for them,but
failed.
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-07-04 12:37 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-03 23:17 [ECOS] code questions: zhlg_shuhan
2002-07-04 5:37 ` Jose Souto
2002-07-03 23:42 aacquaviva
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 read-only IMAP folder(s) and NNTP newsgroup(s).