Article View: gnu.gcc.help
Article #5338780386-assembly
From: C03I%DHBRRZ41.BITNET
Date: Fri, 10 Jan 1992 16:34
Date: Fri, 10 Jan 1992 16:34
40 lines
1576 bytes
1576 bytes
to: help-gcc@prep.ai.mit.edu
from : c03i@dhbrrz41.bitnet
subject: gcc-1.40
We are running interactive Unix V 3.2 on 386-machines.
Installation of gcc happend without any problem.
What we would like to do is using the systems header-file
>>inline.h<<. An example of the code used therein is given
below. Going through the manual (Using and Porting) didn't
help me much since the given examples are for Motorola
Processors. Is there any information available on how
assembler functions, instructions have to look like to make
it suitable for gcc's parser ?
asm int outb(port,val)
{
%reg port,val;
movl port, %edx
movl val, %eax
outb (%dx)
%reg port; mem val;
movl port, %edx
movb val, %al
outb (%dx)
%mem port; reg val;
movw port, %dx
movl val, %eax
outb (%dx)
%mem port,val;
movw port, %dx
movb val, %al
outb (%dx)
}
I'd appreciate any comment or hint.
Regards Guenther Lehnert
University of Bremen, FRG.
c03i@dhbrrz41.bitnet
Technical Details
Message-ID:
<9201101535.AA15948@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mitvma.mit.edu!C03I%DHBRRZ41.BITNETShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,605d4d1a2a453478,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-01-10 07:50:46 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!mitvma.mit.edu!C03I%DHBRRZ41.BITNET From: C03I%DHBRRZ41.BITNET@mitvma.mit.edu Subject: 80386-assembly Message-ID: <9201101535.AA15948@life.ai.mit.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Fri, 10 Jan 1992 16:34:34 GMT Lines: 41