This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: need help with assembly instructions..
- From: cesar tejeda <cesar_tejeda_her at yahoo dot es>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 25 Jan 2002 09:52:29 +0100 (CET)
- Subject: Re: need help with assembly instructions..
That is explained in GCC info docs.
an example:
asm( "movl 8(%%ebp),%%eax ; movl
%%eax,%0":"=m"(__rval)::"%eax");
you see that after the code there are colons.
There you specify if you modify or use registers
or memory and the variable in which to store
the contents of the operations. Please, look
in the info for further details.
--- harish.vasudeva@amd.com escribió: > Hi,
>
> how do i use assembly instructions in my C code.
> typically, i want to break into the kdb thru' my
> C-code. i tried doing
> asm ("int 3");
> but this doesn't compile. any clues?
>
> thanx
> HARISH V
>
>
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es