home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / gcc / bug / 2810 < prev    next >
Encoding:
Text File  |  1992-11-21  |  1.2 KB  |  42 lines

  1. Newsgroups: gnu.gcc.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!hubcap.clemson.edu!dpotlur
  3. From: dpotlur@hubcap.clemson.edu (Potluri Dora)
  4. Subject: Assembly code
  5. Message-ID: <9211210601.AA07137@hubcap.clemson.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Sat, 21 Nov 1992 05:01:46 GMT
  10. Approved: bug-gcc@prep.ai.mit.edu
  11. Lines: 29
  12.  
  13. Hi!
  14.     We have a question regarding generation of assembly code.
  15. Our problem is we are writing a compiler as part of our class work( a
  16. very miniature version). We are at Code generation phase and we decided
  17. to target the vax  machines. In  this regard we were looking at 
  18. the assembly code generated for a simple c-program. We were wondering if
  19. we can in anyway generate assembly code with the corresponding c-code
  20. interspersed between them. For example:
  21. # a = a + b
  22.     .
  23.     .
  24.     assembly code for the statement a = a+b
  25.     .
  26.     .
  27.     
  28.     I hope my question is clear. We went through the man page
  29. looking if we needed to set/unset any flags in order to do so..
  30. Unfortunately, we were not successful...
  31.     We would really appreciate your help. By the way, the assembly
  32. code is generated in this manner on DEC workstation (MIPS architecture)
  33. when we compile using cc (ansi option).
  34.     Thanks for your help,
  35.     Dora Potluri
  36.  
  37.  
  38.         
  39.  
  40.  
  41.  
  42.