On 16 Apr 2012 13:46:08 -0700, in bit.listserv.ibm-main you wrote: >IBM Mainframe Discussion List <[email protected]> wrote on 04/16/2012 >10:57:47 AM: > >> From: Binyamin Dissen <[email protected]> > >> The elimination of GOTOs was to save people time at the cost of CPU >time. > >? > >> Obviously, if a procedure was called from several points ALTER GOTO >would >> generate fewer instructions than perform. > >The last time I looked at a PMAP, the Cobol compiler implements PERFORM >exactly like an ALTERed GO TO, except that all addresses are stored in a >table.
Take a look at the optimized code where paragraphs can only be reached by PERFORM. In many cases the code for a PERFORM is actually the code for the paragraph being PERFORMED. Clark Morris > >> But with GOTOless programming the logic is easier to read. There is no >> question about how you got somewhere. > > agreed > >----------------------------------------- >The information contained in this communication (including any >attachments hereto) is confidential and is intended solely for the >personal and confidential use of the individual or entity to whom >it is addressed. If the reader of this message is not the intended >recipient or an agent responsible for delivering it to the intended >recipient, you are hereby notified that you have received this >communication in error and that any review, dissemination, copying, >or unauthorized use of this information, or the taking of any >action in reliance on the contents of this information is strictly >prohibited. If you have received this communication in error, >please notify us immediately by e-mail, and delete the original >message. Thank you > >---------------------------------------------------------------------- >For IBM-MAIN subscribe / signoff / archive access instructions, >send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

