This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

RE: Inline Assemby


-----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
**********************************************************************


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