home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / fortran / 3163 < prev    next >
Encoding:
Text File  |  1992-08-25  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.lang.fortran
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!usc!sdd.hp.com!news.cs.indiana.edu!uceng.uc.edu!pviswana
  3. From: pviswana@uceng.UC.EDU (Prashanth V.)
  4. Subject: Fortran Program that will generate a Fortran program..
  5. Message-ID: <1992Aug25.203735.7223@uceng.UC.EDU>
  6. Followup-To: comp.lang.fortran
  7. Keywords: Branch INstructions.
  8. Sender: pviswana@uceng.uc.edu
  9. Organization: College of Engineering, University of Cincinnati
  10. Date: Tue, 25 Aug 1992 20:37:35 GMT
  11. Lines: 27
  12.  
  13.  
  14. In my previous post I had mentioned that I need fortran programs that
  15. will generate branch instruction in Fortran. I received many responses and
  16. am very greatful to them. 
  17.  
  18. What I need is a program that will take as an input the number
  19. of branches. And Output not just Goto Instruction in Fortran but
  20. some IF statements and other Branch statements. The problem I am
  21. having is this:
  22.  
  23.     Counting the number of Branch instructions. Is there a
  24. way to find out how many branches the program will take. All
  25. possible combinations should be known. If there are DO statements, long
  26. and short jumps, Do loops and whatever Fortran has to offer.
  27.  
  28. For instance even a DO Loop will be a branch, right? So is there
  29. anyone out there who can help me write a program that will
  30. give me a fortran program that will contain a user specified number
  31. of branches. Not just with Gotos but with DOs, IFs, etc.
  32.  
  33. Your help will be highly appreciated.
  34.  
  35. -- 
  36. Prashanth Viswanath                 Elemental empathy
  37. pviswana@uceng.uc.edu                 A change of synergy
  38. pviswana@thor.ece.uc.edu             Music making contact, 
  39.                           Naturally
  40.