home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sgi / 12531 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.9 KB  |  63 lines

  1. Xref: sparky comp.sys.sgi:12531 comp.sys.mips:884 comp.unix.misc:3266 comp.unix.questions:10143
  2. Newsgroups: comp.sys.sgi,comp.sys.mips,comp.unix.misc,comp.unix.questions
  3. Path: sparky!uunet!stanford.edu!leland.Stanford.EDU!underdog
  4. From: underdog@leland.Stanford.EDU (Dwight Joe)
  5. Subject: Grep-ing for Constants (Re: Assembler Syntax...)
  6. Message-ID: <1992Aug18.060851.11721@leland.Stanford.EDU>
  7. Summary: How does one use the grep command for searches?
  8. Keywords: recap of "EXPORT", grep, UTLB exception handler
  9. Sender: news@leland.Stanford.EDU (Mr News)
  10. Organization: Miners for a Heart of Gold
  11. Distribution: na
  12. Date: Tue, 18 Aug 92 06:08:51 GMT
  13. Lines: 48
  14.  
  15. In article <1992Aug11.103013.11536@leland.Stanford.EDU>
  16. underdog@leland.Stanford.EDU (Dwight Joe) writes:
  17. >Anyone know what the meaning of "EXPORT" might be?
  18. >It appears frequently in the assembly source code of the SGI OS kernels.
  19. >The term usually appears in the following context, for example:
  20. >              EXPORT(alpha)
  21. >Is "EXPORT" a declaration to make the address of "alpha" available
  22. >to other modules in the source code?
  23.  
  24. First, I want to thank everyone who responded by private e-mail,
  25. answering my question and politely explaining netiquette.  In the
  26. future, I will post summaries of responses.
  27.  
  28. As for the responses to my question about "EXPORT", it is indeed
  29. defined in asm.h as
  30.  
  31.      #define EXPORT(x)
  32.             .globl x;
  33.  
  34. Returning to the main reason for the original question, I am trying to decipher
  35. modified SGI OS source to do a software experiment, which requires
  36. modification of the UTLB handler.  In the handler, there are some constants
  37. which have symbolic labels that are defined else.  For example,
  38. consider the following:
  39.  
  40.            #define VALUE_1   8888
  41.  
  42. In the past, when I needed to locate the actual value of a symbolic label
  43. like VALUE_1, I could just do "grep VALUE_1 *.*", which would search
  44. all files at my current level of the directory for a match with "VALUE_1".
  45. Then, usually, the line "#define VALUE_1 8888" would appear.
  46.  
  47. Unfortunately, the code for the OS is distributed across multiple
  48. directories.  Is there a way to use grep (or some other command)
  49. to do the search across all files at my current level of the directory
  50. _and_ subdirectories below the current level--all at once?
  51. It is also important that the path name of the file with a match
  52. appear so that I can find the file producing the match.
  53.  
  54. Please respond by e-mail.  I will produce a summary of any replies that I
  55. receive.
  56.  
  57. -------------------------------------------------------------------------------
  58. Seikatsu no imi wa nan desu ka.            \|  |`      | Don't buy from Toyota;
  59. Shitte itara oshiete kuremasen ka.          | -+-      | especially, don't buy
  60.                                            /| / \      | from Capitol Toyota in
  61. Copyright 1992.                                        | San Jose, California.
  62. -------------------------------------------------------------------------------
  63.