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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: anon@att.net Newsgroups: comp.lang.ada Subject: Re: Will "renames" increase program size? Date: Wed, 15 Jun 2011 22:21:30 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <46294109-f07d-49c0-8e81-65a369a05ced@z15g2000prn.googlegroups.com> Reply-To: anon@anon.org NNTP-Posting-Host: Yg5qs3bu6TUhz+1DaumHYg.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: IBM NewsReader/2 2.0 Xref: g2news1.google.com comp.lang.ada:19861 Date: 2011-06-15T22:21:30+00:00 List-Id: Yes, it should be bigger during testing. That is, using debuging, the code will include info on both the renamed object as well as the true object. That is: package TIO renames Ada.Test_IO ; -- Then using a statements such as TIO.New_Line ; -- will generate debugging information for TIO.New_Line ; -- as well as generate information (unrenamed call) Ada.Text_IO.New_Line ; so your object file will be larger as well as you executable file that contains debugging information. But if once you remove all debugging information code. The object and executable files will be the same with or without rename statement. In <46294109-f07d-49c0-8e81-65a369a05ced@z15g2000prn.googlegroups.com>, Adrian Hoe writes: >Hi, > >Just out of curiosity, will "renames" increase program size? > >e,g, > >package A renames Ada.Text_IO; > >P : Person_Rec renames Personnel_Record; > >I presume Ada compiler will replace the names just like #define in C, >so no increase in program size. But I just want to be sure. > >Thanks. >-- >Adrian Hoe >http://adrianhoe.com/adrianhoe