home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mips / 871 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.4 KB  |  40 lines

  1. Path: sparky!uunet!cs.utexas.edu!swrinde!mips!beacker
  2. From: beacker@sgi.com (Bradley Eacker)
  3. Newsgroups: comp.sys.mips
  4. Subject: Re: Assembler Syntax for R2000 Instruction Set
  5. Message-ID: <l8jav4INN502@spim.mips.com>
  6. Date: 13 Aug 92 00:25:08 GMT
  7. References: <1992Aug11.103013.11536@leland.Stanford.EDU>
  8. Organization: MIPS Computer Systems, Sunnyvale, California
  9. Lines: 27
  10. NNTP-Posting-Host: dish.mips.com
  11. Originator: beacker@dish.mips.com
  12.  
  13. In article <1992Aug11.103013.11536@leland.Stanford.EDU> Dwight Joe writes:
  14. >Anyone know what the meaning of "EXPORT" might be?
  15. >
  16. >It appears frequently in the assembly source code of the SGI OS kernels.
  17. >The term usually appears in the following context, for example:
  18. >
  19. >              EXPORT(alpha)
  20. >
  21. >Is "EXPORT" a declaration to make the address of "alpha" available
  22. >to other modules in the source code?
  23.  
  24. putting aside all the stuff that has been posted about this sequence the
  25. explanation for this resides in /usr/include/sys/asm.h:
  26.  
  27.     /*
  28.      * EXPORT -- export definition of symbol
  29.      */
  30.     #define EXPORT(x)                                       \
  31.             .globl  x;                                      \
  32.     x:
  33.  
  34. There are quite a few other defines in there that can be quite helpful in
  35. being able to understand the assembly language that both SGI and Mips use.
  36. Most of the time I believe that there is a "#include <asm.h>" near the top
  37. of the files and this is what includes this magic file.
  38.  
  39.                  Brad Eacker (beacker@sgi.com)
  40.