home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!swrinde!mips!beacker
- From: beacker@sgi.com (Bradley Eacker)
- Newsgroups: comp.sys.mips
- Subject: Re: Assembler Syntax for R2000 Instruction Set
- Message-ID: <l8jav4INN502@spim.mips.com>
- Date: 13 Aug 92 00:25:08 GMT
- References: <1992Aug11.103013.11536@leland.Stanford.EDU>
- Organization: MIPS Computer Systems, Sunnyvale, California
- Lines: 27
- NNTP-Posting-Host: dish.mips.com
- Originator: beacker@dish.mips.com
-
- In article <1992Aug11.103013.11536@leland.Stanford.EDU> Dwight Joe writes:
- >Anyone know what the meaning of "EXPORT" might be?
- >
- >It appears frequently in the assembly source code of the SGI OS kernels.
- >The term usually appears in the following context, for example:
- >
- > EXPORT(alpha)
- >
- >Is "EXPORT" a declaration to make the address of "alpha" available
- >to other modules in the source code?
-
- putting aside all the stuff that has been posted about this sequence the
- explanation for this resides in /usr/include/sys/asm.h:
-
- /*
- * EXPORT -- export definition of symbol
- */
- #define EXPORT(x) \
- .globl x; \
- x:
-
- There are quite a few other defines in there that can be quite helpful in
- being able to understand the assembly language that both SGI and Mips use.
- Most of the time I believe that there is a "#include <asm.h>" near the top
- of the files and this is what includes this magic file.
-
- Brad Eacker (beacker@sgi.com)
-