From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,36e5e519b6b43fb X-Google-Attributes: gid102b75,public X-Google-Thread: 110292,10dc57790e0ead82 X-Google-Attributes: gid110292,public X-Google-Thread: 1164f8,10dc57790e0ead82 X-Google-Attributes: gid1164f8,public From: ttk@cygnus.com (TTK Ciar) Subject: Re: Intel going to 0.18 micron in Q2/99? Date: 1999/02/13 Message-ID: <7a4f1i$gi$1@andros.cygnus.com>#1/1 X-Deja-AN: 444029561 References: <36BAC1F5.9BFAFA51@strategypartners.com> <918813118.244604@haldjas.folklore.ee> <918917503.41564@haldjas.folklore.ee> Organization: Subtle, but there. Newsgroups: comp.arch,comp.sys.intel,comp.sys.dec In article <918917503.41564@haldjas.folklore.ee> Sander Vesik writes: > >> By ABI I mean >> (a) the conventions used by different pieces of code to talk to each other >> (eg parameter passing conventions, how globals are accessed) > >AFAIK common to all of x86 unices. Maybe it is different from win16/win32, >but even then I am not sure. The x86 Unixes are split about 70/30 between the ELF and aout ABI's. The Win32 ABI is "PE", which is a hacked-up/extended COFF. ELF seems to be slowly but surely replacing all other ABI's, which is a very good thing. The reality is that every architecture does need to customize the ABI in a few ways, and ELF is flexible enough to permit these tweaks *without* breaking the ELF specification. The non-x86 Unixes are mostly ELF with a scattering of various other formats -- aout, bout, coff, xcoff, PEF (which is compressed/encrypted xcoff, very evil), etc. >> You seem to mean by ABI a much larger OS-type API. > >No, I mean small petty details like the bitness of certain data types >like off_t. > >Are these ABI or API? The ABI (ELF, aout, coff, etc) defines data type sizes. Usually just the primitive ones (byte, short, word, dword), and API defines data types in terms of these primitive types (off_t as word, etc). In ELF's case, it has a "size" attribute in the header for 32-bit and 64-bit formats, and the sizes of these primitive types depends on this attribute (except that it's been rather sloppy in how it defines the primitive types on 64-bit systems, which has lead to a little divergence -- this should get fixed soon, though). There's no good technical reason I can see for not defining the more complex types in the ABI, except that this has typically been the domain of the OS architects, and the point to a good ABI is portability across multiple different OS's. I don't know how well it would go over if some BigDog tried to define the API data types in the ABI and persuade all the OS folks to comply to those data types. The technical problems (compatability with legacy code, etc) are fairly easily solvable (however I expect most commerical OS architects would solve it by adding way too much bloat to the already bloaty OS's -- you could make money betting that the Linux implementation would be lean and elegant, though). The primary problems would be (1) getting the API right, and (2) political, nasty *nasty* political. If it were done well, it would make life much easier for software developers. We wouldn't have to learn a different set of rules for each architecture, and cross-platform code would be much easier to write. (For compiler developers that goes double on both points!) I can certainly see the appeal for device driver development too. The only really hard-core holdouts I foresee are in the embedded industry, where not only are miniscule overheads (such as not-quite- right-for-the-task type definitions) magnified, but also conventional notions of the fundamental types break down. 16- or 32-bit *bytes*, 24- or 48-bit native ints, 128-bit accumulators, and the like are not unheard of. I have no idea what Intel may be planning. This is all semirandom blathering about ABI's and API's on my part. -- TTK