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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9b2d73e60acd3f07 X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: Estimating conversion of Ada 83 to Ada 95 Date: 1999/06/08 Message-ID: <7jjeq8$hs3@hobbes.crc.com>#1/1 X-Deja-AN: 487134822 References: <7jj9kr$2hr$1@news2.tor.accglobal.net> Organization: Coleman Research Corporation X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Newsgroups: comp.lang.ada Date: 1999-06-08T00:00:00+00:00 List-Id: Terry J. Westley wrote in message <7jj9kr$2hr$1@news2.tor.accglobal.net>... >We're converting a 640 KSLOC real-time, distributed simulation from >Ada 83 (VADS) to Ada 95. I expect most of the work will be replacing >VADS-specific packages with Ada 95 library packages and POSIX packages. > >Based on some limited conversion work we've already done, I'm using >162 LOC/Hour for converting from VADS to GNAT Ada 95 for those files >which include lots of special stuff such as OS calls, use of VADS >packages, use of Oracle Pro*Ada, etc. For the rest, I figure it'll >be at least 5 times faster than that, for a conversion rate of >812 LOC/Hour. This includes conversion, compilation, and testing. > >I expect we'll use the GNAT Ada83 switch for the first pass, then >turn it off to see what happens. > >Anyone have any evidence that I'm way off on this estimate? > No. Sounds pretty consistent with my experience. We didn't use the ada83 switch at all, because we found very few things that wouldn't compile -- e.g. changes in floating point attributes, type constraints on generic parameters, etc. We did find, however, that it was very useful to use the pragma Use_VADS_Size, because there were lots of rep clauses of the form X at 0 .. Natural'Size -1; The fact that Natural'Size changed from 32 to 31 would have caused lots of grief the first time around if we hadn't used the pragma. I'm curious, though what you plan to do about Pro*Ada, as this one doesn't have a "clean" solution to my knowledge.