× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: RE: %EOF - more on GOTO
  • From: "John Taylor" <John.Taylor@xxxxxxxxxxxxxxx>
  • Date: Sat, 19 Jun 1999 10:40:23 -0600
  • Importance: Normal



> -----Original Message-----
> From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
> Behalf Of Bob Spinks
> Sent: Saturday, June 19, 1999 5:09 AM
> To: INTERNET:RPG400-L@midrange.com
> Subject: Re: %EOF - more on GOTO
>
>
> What about n-way(pipeline/scalar) processing using multiple
> chips(up to 12)
> on the 720 box.
>
> Conditional branching(i.e. GOTOs,CABs,etc.) clogs up the pipelines due to
> prediction
> algorithms which must be used for the branch instructions.
>
> Optimization is achieved when all pipelines are full and an instruction is
> completed with each
> cycle. This is impossible when branching is used in the pgm.
>
> Information on this subject can be gotten from Soltis' book "Inside The
> AS/400".
>
> One last vent, GOTO is synonomous for Spaghetti!
>
> Bob Spinks


I wasn't aware of the optimization issue with n-way machines. However, it
wouldn't have made much difference to me because I never trade off
maintainability for performance.

One last reply, GOTO is a tool! I wouldn't remove the hammer from my toolbox
just because it has the *potential* to do bad things. FWIW, I've never found
the need to use a GOTO in any other language than RPG. But within it's fixed
column constraints, nested structures are just a mess to try and untangle.

John Taylor

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.