From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <00ea01c10dfd$04f226b0$3cf7c6d4@SOMA> From: "Boyd Roberts" To: <9fans@cse.psu.edu> References: <20010716110323.EE998199C1@mail.cse.psu.edu> <00a701c10df6$03a73450$3cf7c6d4@SOMA> Subject: Re: [9fans] another compiler bug (another try to send this coherently) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Date: Mon, 16 Jul 2001 15:41:30 +0200 Topicbox-Message-UUID: ceea38c8-eac9-11e9-9e20-41e7f4b1d025 do you define implementation as the compiler or the whole system? the other guy seems to be doing stupid stuff with APE or some ANSI (ie. non native plan 9 compiler [ken C]): #include #include int main() { static unsigned char tab[1] = { 0x80 }; static int x = 0x80; printf("%d %d\n", tab[0] << 24 >> 31, x << 24 >> 31); exit(EXIT_SUCCESS); } why he just can't read the doc and stop fucking with stupid shifts is beyond me? is this C programming 101? i would class the compiler as the implementation, 'cos you could have multiple compilers (and you do) on plan 9 or on some random unix you could have the native compiler and then install gcc (god forbid). i tend to err on the side of caution (ie. paranoia/overkill) so i don't bitten by such glop.