home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / sysv386 / 13410 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.2 KB  |  38 lines

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