home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- 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
- From: pviswana@uceng.UC.EDU (Prashanth V.)
- Subject: Fortran Program that will generate a Fortran program..
- Message-ID: <1992Aug25.203735.7223@uceng.UC.EDU>
- Followup-To: comp.lang.fortran
- Keywords: Branch INstructions.
- Sender: pviswana@uceng.uc.edu
- Organization: College of Engineering, University of Cincinnati
- Date: Tue, 25 Aug 1992 20:37:35 GMT
- Lines: 27
-
-
- In my previous post I had mentioned that I need fortran programs that
- will generate branch instruction in Fortran. I received many responses and
- am very greatful to them.
-
- What I need is a program that will take as an input the number
- of branches. And Output not just Goto Instruction in Fortran but
- some IF statements and other Branch statements. The problem I am
- having is this:
-
- Counting the number of Branch instructions. Is there a
- way to find out how many branches the program will take. All
- possible combinations should be known. If there are DO statements, long
- and short jumps, Do loops and whatever Fortran has to offer.
-
- For instance even a DO Loop will be a branch, right? So is there
- anyone out there who can help me write a program that will
- give me a fortran program that will contain a user specified number
- of branches. Not just with Gotos but with DOs, IFs, etc.
-
- Your help will be highly appreciated.
-
- --
- Prashanth Viswanath Elemental empathy
- pviswana@uceng.uc.edu A change of synergy
- pviswana@thor.ece.uc.edu Music making contact,
- Naturally
-