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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1ef44357ebdfefea X-Google-Attributes: gid103376,public From: Ted Dennison Subject: Re: number bases Date: 1999/11/01 Message-ID: <7vkk54$bj4$1@nnrp1.deja.com>#1/1 X-Deja-AN: 543103905 References: <381D4C88.B5E8BBE7@interact.net.au> X-Http-Proxy: 1.0 x25.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Nov 01 17:54:47 1999 GMT X-MyDeja-Info: XMYDJUIDtedennison Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.6 [en] (WinNT; I) Date: 1999-11-01T00:00:00+00:00 List-Id: In article <381D4C88.B5E8BBE7@interact.net.au>, G wrote: > If someone decides to represent all or the majority of integers in a > program unit with base 2 > or > 16 > - does this in any way optimise the code. Which is to say - does it > take less space in memory and is it more efficient (does it run faster) > to represent integers (floats, whatever) in a form closer to the machine > architecture/structure (i.e. binary) ? I'm not sure what you are asking here. If you mean does Fred : constant Integer := 2#1011#; take less space or time at runtime than Fred : constant Integer := 11; the answer is no. They are both translated into the exact same thing at compile time. This is the same answer you'd get if you were asking the same question about a C or Java compiler. -- T.E.D. Sent via Deja.com http://www.deja.com/ Before you buy.