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,1ef44357ebdfefea X-Google-Attributes: gid103376,public From: tmoran@bix.com Subject: Re: number bases Date: 1999/11/01 Message-ID: <8hkT3.225$cn1.1641@typhoon-sf.snfc21.pbi.net>#1/1 X-Deja-AN: 543160020 References: <381D4C88.B5E8BBE7@interact.net.au> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 941478084 207.214.211.201 (Mon, 01 Nov 1999 09:41:24 PST) Organization: SBC Internet Services NNTP-Posting-Date: Mon, 01 Nov 1999 09:41:24 PST Newsgroups: comp.lang.ada Date: 1999-11-01T00:00:00+00:00 List-Id: >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. This is not a decision normally made by the programmer, but rather by the compiler. For a binary machine a compiler will normally use binary representations. For a decimal machine (not many of those around these days), it would probably use decimal. The people who write production compilers are extremely familiar with the machine they are generating code for, and will use optimized techniques - or nobody will buy their compiler. >I don't have enough time to study Ada full time because I am too busy Spend three minutes concentrating on reading the beginning of an intro to programming book, and you'll save hours of wondering, as well as three minutes of newsgroup posting and reading time.