This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Inline Assemby
- To: "'Doran, Steve @ OS'" <Steve dot Doran at OS dot L-3com dot com>, "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Subject: RE: Inline Assemby
- From: David Korn <dkorn at pixelpower dot com>
- Date: Wed, 21 Mar 2001 06:48:14 -0000
-----Original Message-----
From: Doran, Steve @ OS [mailto:Steve.Doran@OS.L-3com.com]
Sent: 20 March 2001 19:37
>I am somewhat confused about how to embed inline assembly in a
>gcc program. Below is my simple assembly instructions:
> in al, E0h
> or al, 01h
> out E0h, al
>what is the syntax to insert my assembly instructions in gcc? I have
>read the gcc manual and I have tried all sorts of iterations without
>succcess.
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_4.html#SEC93
>BTW, I have a requirement to port the assembly so I cannot convert it into
>C.
Or perhaps you could break the assembly code out into a separate
function and put it in a .S file ?
DaveK
--
All your base are belong to us!
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************