Article View: bit.listserv.asm370
Article #63Re: Structured Macros Infinite Loop Warning
From: glen herrmannsfeldt
Date: Fri, 07 Oct 2005 17:09
Date: Fri, 07 Oct 2005 17:09
27 lines
2664 bytes
2664 bytes
"Edward E. Jaffe" <edjaffe@phoenixsoftware.com> wrote: > John Leonard wrote: > >Just goes to show you if you want to code an IF statement code it in COBOL > >Those case macros just generate code that with generated labels creating > >code difficult to read modify and maintain. > >If see no advantage between an IF = instead BE > There are *tremendous* advantages ... > So-called "label management" -- e.g., coming up with unique labels, > renumbering after an insertion of code (assuming you use numeric > suffixes as many people do), etc. -- is error prone busy work. Every > seasoned assembler programmer has seen the common error in which a loop > is created by "cloning" a routine from one part of a program to another > and forgetting to "fix up" one of the branches in the cloned routine. Some DEC assemblers have global and local labels, such that local labels only need to be unique between global labels. They are of the form $n where n is numeric. I am not suggesting this for HLASM, only commenting on it to indicate that there are other solutions to the label problem. -- glen
Technical Details
Message-ID:
<4346ABAC.mailxCUR11FQPI@seniti.ugcs.caltech.edu>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-10!sn-xit-01!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!ugcs.caltech.edu!gahReferences:
<OFBC1F2B54.20B857C0-ON85257092.005648E3-85257092.00568ADA @westfield-cos.com> <434691B1.7040005@phoenixsoftware.com>Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,89ec88f8cee0d19f
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-10!sn-xit-01!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!ugcs.caltech.edu!gah
From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: bit.listserv.asm370
Subject: Re: Structured Macros Infinite Loop Warning
Date: Fri, 7 Oct 2005 10:09:00 -0700
Organization: SAS Inc.
Lines: 27
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <4346ABAC.mailxCUR11FQPI@seniti.ugcs.caltech.edu>
References: <OFBC1F2B54.20B857C0-ON85257092.005648E3-85257092.00568ADA
@westfield-cos.com>
<434691B1.7040005@phoenixsoftware.com>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1128705184 9720 10.19.150.41 (7 Oct 2005 17:13:04 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Fri, 7 Oct 2005 17:13:04 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
User-Agent: nail 9.30 2/20/02
Approved-By: glen herrmannsfeldt <gah@UGCS.CALTECH.EDU>
In-Reply-To: <434691B1.7040005@phoenixsoftware.com>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 07 Oct 2005 17:13:00.0944 (UTC)
FILETIME=[5EE84100:01C5CB62]
Originator: daemon@mozart.unx.sas.com