home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi:12531 comp.sys.mips:884 comp.unix.misc:3266 comp.unix.questions:10143
- Newsgroups: comp.sys.sgi,comp.sys.mips,comp.unix.misc,comp.unix.questions
- Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!underdog
- From: underdog@leland.Stanford.EDU (Dwight Joe)
- Subject: Grep-ing for Constants (Re: Assembler Syntax...)
- Message-ID: <1992Aug18.060851.11721@leland.Stanford.EDU>
- Summary: How does one use the grep command for searches?
- Keywords: recap of "EXPORT", grep, UTLB exception handler
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Miners for a Heart of Gold
- Distribution: na
- Date: Tue, 18 Aug 92 06:08:51 GMT
- Lines: 48
-
- In article <1992Aug11.103013.11536@leland.Stanford.EDU>
- underdog@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?
-
- First, I want to thank everyone who responded by private e-mail,
- answering my question and politely explaining netiquette. In the
- future, I will post summaries of responses.
-
- As for the responses to my question about "EXPORT", it is indeed
- defined in asm.h as
-
- #define EXPORT(x)
- .globl x;
-
- Returning to the main reason for the original question, I am trying to decipher
- modified SGI OS source to do a software experiment, which requires
- modification of the UTLB handler. In the handler, there are some constants
- which have symbolic labels that are defined else. For example,
- consider the following:
-
- #define VALUE_1 8888
-
- In the past, when I needed to locate the actual value of a symbolic label
- like VALUE_1, I could just do "grep VALUE_1 *.*", which would search
- all files at my current level of the directory for a match with "VALUE_1".
- Then, usually, the line "#define VALUE_1 8888" would appear.
-
- Unfortunately, the code for the OS is distributed across multiple
- directories. Is there a way to use grep (or some other command)
- to do the search across all files at my current level of the directory
- _and_ subdirectories below the current level--all at once?
- It is also important that the path name of the file with a match
- appear so that I can find the file producing the match.
-
- Please respond by e-mail. I will produce a summary of any replies that I
- receive.
-
- -------------------------------------------------------------------------------
- Seikatsu no imi wa nan desu ka. \| |` | Don't buy from Toyota;
- Shitte itara oshiete kuremasen ka. | -+- | especially, don't buy
- /| / \ | from Capitol Toyota in
- Copyright 1992. | San Jose, California.
- -------------------------------------------------------------------------------
-