need help with assembly instructions..

cesar tejeda cesar_tejeda_her@yahoo.es
Fri Jan 25 00:52:00 GMT 2002


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



More information about the Gcc-help mailing list