Article View: bit.listserv.asm370
Article #202Re: Linkage convention
From: Bill Fairchild
Date: Mon, 17 Oct 2005 16:12
Date: Mon, 17 Oct 2005 16:12
24 lines
2641 bytes
2641 bytes
In a message dated 10/1/2005 9:30:17 A.M. Central Daylight Time, bob.shannon@rocketsoftware.com writes: >... establishing a software stack for saveareas/workareas that will eliminate the need >for Getmains... I think this is a solution in search of a problem. 22 years ago I wrote an ASM program that used GETMAIN to build a very large number of fairly small control blocks. Thinking that there was too much overhead using the ancient SVC form of GETMAIN (this was before the PC form was invented), I changed the code to do a single huge GETMAIN at the beginning and then do my own suballocation. I ran some benchmarks and found a negligible difference in CPU time. The GETMAIN code has been rock solid for decades, and has also been highly optimized in its execution paths. If you need to do tens of thousands of GETMAINs per second in disabled code, then maybe you might want to think about eliminating them. But if you have well-debugged infrastructure code to use software stacks, by all means use it. But don't bother trying to build your own such code. I don't think it's worth the development/debug/support effort. And you can reduce the overhead of GETMAINs by using the PC entry form rather than the SVC form. Bill Fairchild
Technical Details
Message-ID:
<1f5.1468753f.30852767@aol.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!sn-xit-02!sn-xit-11!sn-xit-05!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!aol.com!DASDBill2Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,91cbe6b24531a1d8,start X-Google-Attributes: gidfcdcb,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!sn-xit-02!sn-xit-11!sn-xit-05!sn-xit-06!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!aol.com!DASDBill2 From: Bill Fairchild <DASDBill2@aol.com> Newsgroups: bit.listserv.asm370 Subject: Re: Linkage convention Date: Mon, 17 Oct 2005 12:12:23 EDT Organization: SAS Inc. Lines: 24 Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU> Message-ID: <1f5.1468753f.30852767@aol.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 1129565848 29422 10.19.150.41 (17 Oct 2005 16:17:28 GMT) X-Complaints-To: usenet@unx.sas.com NNTP-Posting-Date: Mon, 17 Oct 2005 16:17:28 +0000 (UTC) Comments: Gated by NETNEWS@VM.SAS.COM Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU> X-Mailer: 9.0 Security Edition for Windows sub 5200 X-Spam-Flag: NO Approved-By: DASDBill2@AOL.COM Return-Path: owner-assembler-list@LISTSERV.UGA.EDU X-OriginalArrivalTime: 17 Oct 2005 16:17:25.0890 (UTC) FILETIME=[4330E620:01C5D336] Originator: daemon@mozart.unx.sas.com