home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.sysv386
- Path: sparky!uunet!virtech!cpcahil
- From: cpcahil@virtech.uucp (Conor P. Cahill)
- Subject: Re: inline _asm support for DELLs cc?
- Message-ID: <1992Aug21.164217.2333@virtech.uucp>
- Organization: Virtual Technologies Inc.
- References: <KM05HEM@math.fu-berlin.de>
- Date: Fri, 21 Aug 92 16:42:17 GMT
- Lines: 27
-
- melchers@Chico.Chemie.FU-Berlin.DE (Bernd Melchers) writes:
-
- >Does the c compiler for DELL Unix support inline
- >assembler within a c program like this:
-
- Most C compilers in the 386 UNIX environment support asm as a pseudo function
- call. Your function could be coded as follows:
-
- asm(" .text");
- asm(" .align 4");
- asm(" .globl Mips2...");
- asm("Mips2...");
- ...
-
-
-
- >#ifdef MSDOS
- >long int _fastcall Mips2IntelDoubleword(long int dw /* in DX:AX */)
-
- a long int is 4 bytes in the x86 environment and therefore is usually stored
- in an extended register like eax or edx. This code appears to be oriented
- toward MS-DOS and it's 16 bit real mode as opposed to UNIX.
- --
- *** SENTINEL(tm) The ultimate Debugging Environment - email for more info ***
-
- Conor P. Cahill (703)430-9247 cpcahil@virtech.vti.com
- Virtual Technologies, Inc. 46030 Manekin Plaza Dulles, VA 21066
-