From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5603 invoked by alias); 4 Dec 2001 20:50:00 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 5564 invoked from network); 4 Dec 2001 20:49:59 -0000 Received: from unknown (HELO cdlsystems.com) (207.228.116.20) by sources.redhat.com with SMTP; 4 Dec 2001 20:49:59 -0000 Received: from hades by cdlsystems.com with SMTP (MDaemon.v3.5.3.R) for ; Tue, 04 Dec 2001 13:49:54 -0700 Message-ID: <00d001c17d05$4be398c0$160e10ac@hades> From: "Mark Cuss" To: References: <20011204153416.A24659@disaster.jaj.com> <20011204155032.A24992@disaster.jaj.com> Subject: Assembly in Gcc Date: Tue, 04 Dec 2001 12:50:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Return-Path: mcuss@cdlsystems.com X-MDaemon-Deliver-To: gcc@gcc.gnu.org Reply-To: mcuss@cdlsystems.com X-SW-Source: 2001-12/txt/msg00161.txt.bz2 Hello all, I am new to doing inline asembly in gcc and have a few questions - hopefully someone can help me out. I read the section of the manual on the doing inline assembly. It is quite different than the old Borland compiler I used to use on DOS - I could just put an "asm " and enclose all of my Intel syntax assmebly instructions inside there. Is there any way to do this in gcc? I found the intel_syntax directive and passed that in, but it seems that I still need to put %' s in front of register names, etc. The project I am working on involves integrating a large chunk (~ 40 pages) of Intel assembly instructions into a program which I must compile with gcc. So, my goal is to be able to do something like this: asm { mov dx, 378 mov al, FF out dx, al } ; ... Without reformatting the code. Is this possible? Thanks in advance Mark Mark Cuss, B. Sc. Junior Real Time Systems Analyst CDL Systems Ltd 3553 - 31 Street NW Calgary, Alberta (403) 289-1733 ext 226 mcuss@cdlsystems.com