home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / gnu / gcc / help / 2100 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.2 KB  |  32 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!cis.ohio-state.edu!stb.INfo.COM!michael
  3. From: michael@stb.INfo.COM (Michael Gersten)
  4. Subject: Help on addressing modes...
  5. Message-ID: <m0mSdUC-0005OXC@stb.info.com>
  6. Sender: daemon@cis.ohio-state.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 10 Sep 1992 01:38:00 GMT
  10. Lines: 20
  11.  
  12.  
  13. I need some help on addressing modes in gcc 2.2.2.
  14.  
  15. I have a machine where some instructions can take a constant address,
  16. or a constant plus a register. Some can handle the indirect versions
  17. of those (contents of a fixed location, or contents of a fixed location
  18. plus a register).
  19.  
  20. How do I tell the compiler that some instructions cannot indirect? I
  21. can say that an operand must be memory, but it won't be able to be
  22. any memory expression. (In other words, GO_IF_LEGITIMATE_ADDRESS needs
  23. to depend on the instruction being generated).
  24.  
  25. Also, am I correct in thinking that if GO_IF_LEGITIMATE_ADDRESS is
  26. passed an rtx beginning with '(mem (...) )', then it is an indirect
  27. address? (I.e., if it is passed '(reg X)' it is not the register itself
  28. that is being addressed, but the address pointed to by the register)
  29.  
  30.         Michael
  31. michael@stb.info.com
  32.