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,3ccb707f4c91a5f2 X-Google-Attributes: gid103376,public From: "Brian R. Hanson" Subject: Re: Portability of Arithmetic (was: Java vs Ada 95) Date: 1996/10/18 Message-ID: <3268573F.41C6@cray.com>#1/1 X-Deja-AN: 190459963 references: <325D7F9B.2A8B@gte.net> <1996Oct15.174526.1@eisner> <32679C86.2FB8@watson.ibm.com> content-type: text/plain; charset=us-ascii organization: Cray Research a division of Silicon Graphics, Inc. mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 3.0SC-SGI (X11; I; IRIX 6.2 IP22) Date: 1996-10-18T00:00:00+00:00 List-Id: Robert Dewar wrote: > > iNorman says > > "Harrumph! What about 64-bit UNsigned binary arithmetic? 32-bit > arithmetic does not suffice for manipulating offsets into files larger > than 4GB, or for calculating the amount of space available on some > disks, or for timestamps accurate to the nearest millisecond and > spanning a range of 16 months or more." > > Well if you are telling me that you have written applications that > do all the above, interesting ... I sure have not seen many such uses > in the user code I have seen. > > I am particularly interested in your comments on manipulating offsets > into files larger than 4GB, what operating system are you talking about > here for interest :-) I work on an application that regularly needs to manipulate file offsets that do not fit in 32 bits. Two systems that can handle this are Cray Research Unicos Silicon Graphics Irix 6.2 I worked at Control Data on Nos/VE which provided a user address space of 2**16 segments of 2**31 bytes. Unfortunately, because files were always memory mapped, any one file could not exceed 2**31 bytes and the commercial database people were on our case for having such a pathetic limitation for file size. This was 8 years ago at least. Database applications and video applications I would expect would consider 4GB extreemly limiting. -- Brian Hanson -- brh@cray.com