comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: Will "renames" increase program size?
Date: Wed, 15 Jun 2011 22:21:30 +0000 (UTC)
Date: 2011-06-15T22:21:30+00:00	[thread overview]
Message-ID: <itbb99$j1u$1@speranza.aioe.org> (raw)
In-Reply-To: 46294109-f07d-49c0-8e81-65a369a05ced@z15g2000prn.googlegroups.com

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 <abyhoe@gmail.com> 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




      parent reply	other threads:[~2011-06-15 22:21 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-15  2:10 Will "renames" increase program size? Adrian Hoe
2011-06-15  5:37 ` Randy Brukardt
2011-06-15  9:11   ` AdaMagica
2011-06-15 11:26     ` Yannick Duchêne (Hibou57)
2011-06-15 11:24   ` Yannick Duchêne (Hibou57)
2011-06-15 13:15     ` Dmitry A. Kazakov
2011-06-16  6:59       ` AdaMagica
2011-06-16  8:59         ` Dmitry A. Kazakov
2011-06-16 10:18           ` AdaMagica
2011-06-16 12:15             ` Dmitry A. Kazakov
2011-06-16 23:22             ` Randy Brukardt
2011-06-16 15:40           ` Adam Beneschan
2011-06-16 16:33             ` Dmitry A. Kazakov
2011-06-16 17:42               ` Adam Beneschan
2011-06-16 18:53                 ` Dmitry A. Kazakov
2011-06-16 23:39                   ` Randy Brukardt
2011-06-17  6:53                     ` Dmitry A. Kazakov
2011-06-18  0:02                       ` Randy Brukardt
2011-06-18  7:54                         ` Dmitry A. Kazakov
2011-06-18  8:58                           ` Yannick Duchêne (Hibou57)
2011-06-18 10:05                             ` Dmitry A. Kazakov
2011-06-18 12:49                               ` Yannick Duchêne (Hibou57)
2011-06-18 22:44                           ` Randy Brukardt
2011-06-22  0:56                             ` Shark8
2011-06-15 22:21 ` anon [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox