Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.10 $; site convexs Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!convexs!hosking From: hosking@convexs.UUCP Newsgroups: net.lang.c Subject: Re: Long Longs Message-ID: <7000005@convexs> Date: Sun, 2-Mar-86 18:56:00 EST Article-I.D.: convexs.7000005 Posted: Sun Mar 2 18:56:00 1986 Date-Received: Tue, 4-Mar-86 05:05:07 EST References: <491@faron.UUCP> Lines: 27 Nf-ID: #R:faron.UUCP:491:convexs:7000005:000:1008 Nf-From: convexs.UUCP!hosking Mar 2 17:56:00 1986 > Does anyone have a good solution? > > Does C++ have long longs? Does anyone know of ANY language that does? > > > > Bob Silverman We ran into exactly this sort of problem with the Convex C-1. It has 64 bit registers, but we didn't want to make "long" be 64 bits, for a number of reasons, including "portability" with existing code which assumed that sizeof(long) == sizeof(int) (Argh!!), and performance impact on typical applications. /* Danger, Will Robinson! Flames from hoptoad!laura approaching! */ We therefore support "short" "int" "long" and "long long" - where sizeof(long long) == 64 bits. You can argue that this is not portable, and I'd have to agree, but it seemed like the best solution at the time, given that we had to get a product to market in order to survive. Had we been doing the C compiler as a research project, we might very well have made different decisions. Doug Hosking Convex Computer Corp. Richardson, TX {allegra, ihnp4, uiucdcs}!convex!hosking