From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_05,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!husc6!bbn!inmet!ishmael!inmet!ada-uts!callen From: callen@ada-uts Newsgroups: comp.lang.ada Subject: Re: Ada Vs. COBOL -- Looking for Inform Message-ID: <57900072@ada-uts> Date: 26 May 88 04:15:00 GMT References: <342@ajpo.sei.cmu.edu> Nf-ID: #R:ajpo.sei.cmu.edu:-34200:ada-uts:57900072:000:2525 Nf-From: ada-uts!callen May 26 00:15:00 1988 List-Id: > 1. They believed that most Ada compilers (in fact, any in the > forseeable future) generate object code which is larger and > slower than the object code which is produced for similar > programs by COBOL compilers. One organization showed me a > "benchmark" in which a company (well-known in the Ada community) > had attempted to duplicate CICS (Customer Information Control > System) in Ada. The Ada version was more than 50% slower and > larger than the COBOL version. I would like to add a few details and corrections to this comment. The comparison was between two CICS transactions, one coded in Ada and the other in Cobol. For those not "in the know", CICS is a teleprocessing monitor for IBM systems that has been around since the early 1960's. CICS can be considered a mini-operating system; thus, the Ada runtime system had to be retargeted to this new "OS". The test was performed on a VERY early release of the new RTS. The Ada transaction was coded first (and to a tight deadline); the Cobol version came later as a VERY simple attempt to gather some INITIAL data comparing Ada and Cobol. I must emphasize that the Ada runtime system and CICS interface used was VERY preliminary; it is by no means optimal. The Cobol RTS and interface code has had 2 decades to mature. The fact that the Ada came in 50% slower than the Cobol was NOT particularly surprising, given these conditions. The figure can EASILY be improved. This single, primitive data point has been blown COMPLETELY out of proportion. It is worth noting that the size of the object code for the actual "mainline" program is SMALLER than that of the Cobol program! The runtime system swamped this fact. Object code quality is BY NO MEANS the problem, and as I said earlier, the RTS can be (and is being) improved. In case you can't tell, I wrote both the Ada and (shudder) Cobol code for this "benchmark" (such as it is). Many years ago I did commercial programming for online systems in Cobol. I KNOW Cobol. Why I'm admitting this in public I don't know. :-) I have been writing Ada for 2 years, I think it's fair to say that I KNOW Ada, too. I can see advantages and disadvantages to writing data processing code in Ada rather than Cobol. But to use this ONE crude test to claim that "Cobol outperforms Ada by 50%" is baloney. -- Jerry Callen Intermetrics, Inc. 733 Concord Ave. Cambridge, MA 02138 (617) 661-1840 Internet: callen@inmet.inmet.com UUCP: ...{harvard,ihnp4,ima}!inmet!callen