This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: code questions:


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]