Re: Linux assembly query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



interesting,i search the google and find that it is in the gcc document.

http://coding.derkeiler.com/Archive/Assembler/comp.lang.asm.x86/2007-03/msg00046.html
http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Modifiers.html

2009/11/15 Peter Teoh <htmldeveloper@xxxxxxxxx>:
> this is interesting....
>
> from
>
> http://www.nongnu.org/avr-libc/user-manual/inline_asm.html
>
> it seemed to mean "read-write"?
>
> and perhaps someone should update this:
>
> http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html
>
> as I cannot find any such feature mentioned as well.
>
> On Sat, Nov 14, 2009 at 11:15 AM, dinesh bhaskar <pdineshb@xxxxxxxxx> wrote:
>>
>> Hello all,
>>
>> can somebody explain me the following assembly syntax, this I have
>> seen in Linux kernel code.
>>
>>  asm volatile("int $0x16"
>>             : "+a" (ax), "+b" (bx)
>>             : : "ecx", "edx", "esi", "edi");
>>
>> I did not understand :"+a" mean.  what does "+" tell there?
>> Generally we use "=a", indicating the output operands and other
>> registers are indicated as clobbered registeres.
>>
>>
>> TIA
>> dinesh
>>
>> --
>> To unsubscribe from this list: send an email with
>> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
>> Please read the FAQ at http://kernelnewbies.org/FAQ
>>
>
>
>
> --
> Regards,
> Peter Teoh
>



-- 
Best Regards
Lin

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux