Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site spanky.UUCP Path: utzoo!linus!decvax!genrad!mit-eddie!mit-vax!eagle!mhuxt!mhuxi!mhuxa!houxm!hocda!spanky!ka From: ka@spanky.UUCP Newsgroups: net.lang.c Subject: Re: Casting aspersions... Message-ID: <415@spanky.UUCP> Date: Wed, 13-Jul-83 12:06:15 EDT Article-I.D.: spanky.415 Posted: Wed Jul 13 12:06:15 1983 Date-Received: Thu, 14-Jul-83 08:27:51 EDT References: <245@vaxine.UUCP> Organization: Bell Labs, Holmdel, N. J. Lines: 21 Re: int *pi; char c; c = *pi; compiling to: cvtbl *_pi,r0 ; Huh? cvtlb r0,_c The code generated by the C compiler is correct. It is also inefficient; "movb *_p1,_c" would be better. Probably that perticular statement does not occur too often, so the deficiency in the C compiler is not too serious. The code reproduced from printf was designed to handle multiple chacter constants. E. g. printf("%c\n", 'ab'); should produce: ab Kenneth Almquist