Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!cbmvax!bpa!asi!metro From: metro@asi.UUCP Newsgroups: comp.lang.c Subject: Re: Standard int sizes Message-ID: <103@asi.UUCP> Date: Sun, 12-Apr-87 12:07:05 EST Article-I.D.: asi.103 Posted: Sun Apr 12 12:07:05 1987 Date-Received: Tue, 14-Apr-87 00:17:10 EST References: <6759@brl-adm.ARPA> <230@ems.UUCP> <567@csun.UUCP> Organization: Assessment Systems, Inc., Philadelphia, PA Lines: 25 Summary: Wouldn't it be interesting to be able to defint INT size? I am not actually suggesting a change to the C language, so please do not flame the following. Wouldn't it be interesting to be able to specify the size of an integer variable. Perhaps a method like the one used in IBM's fortran 66 compiler. It was actually an IBM extension to the language i believe. int*4 value1; /* 4 byte integer */ int*2 value2; /* 2 byte integer */ int*1 value3; /* 1 byte integer */ The only integer sizes which were implemented on the IBM were those which made sense to the instruction set (I.E. word, half-word, and byte). It would seem that if the above definitions were used on a machine which did not support that particular size, a syntax/semantics error would be appropriate. Just some more fuel for the fire. -- Metro T. Sauper, Jr. Assessment Systems, Inc. Director, Remote Systems Development 210 South Fourth Street (215) 592-8900 ..!asi!metro Philadelphia, PA 19106