Date: Sun, 26 Feb 2017 21:49:40 +0000 From: Rick Macklem <rmacklem@uoguelph.ca> To: Warner Losh <imp@bsdimp.com>, Konstantin Belousov <kostikbel@gmail.com> Cc: Bruce Evans <brde@optusnet.com.au>, src-committers <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r314087 - head/sys/x86/x86 Message-ID: <YTXPR01MB01891DF293FE5E2692CFDE23DD540@YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM> In-Reply-To: <CANCZdfrNKALZdrNSXUXKRS8hH_=LpQsP7pWD%2BRZbJM6cuTC=8A@mail.gmail.com> References: <201702220707.v1M7764i020598@repo.freebsd.org> <20170223053954.J1044@besplex.bde.org> <20170224125335.GV2092@kib.kiev.ua> <20170225130549.C1026@besplex.bde.org> <20170225101543.GC2092@kib.kiev.ua> <20170226013936.S856@besplex.bde.org> <20170226124445.GE2092@kib.kiev.ua>, <CANCZdfrNKALZdrNSXUXKRS8hH_=LpQsP7pWD%2BRZbJM6cuTC=8A@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Warner Losh wrote: > On Sun, Feb 26, 2017 at 5:44 AM, Konstantin Belousov <kostikbel@gmail.com= > wrote: > > On Sun, Feb 26, 2017 at 04:43:12AM +1100, Bruce Evans wrote: > > 2.9 BSD was a port to PDP-11, AFAIK, with 16bit ints. > > A bit off topic, but 2BSD was basically[**] a continuation of Research > Unix which started out life on the PDP-11 (well, OK, it started life > in assembler on the PDP-7, but then was rewritten in C on the PDP-11). More off topic...this C was defined by Dennis Richie (sp?) and I heard him once say "ANSI C isn't a bad language, but it isn't C". It didn't have "uns= igned int" because he noted that a "char *" behaved the same, so why is it needed? > Or a compiler more modern than K&R[*]. I could be wrong (lost my K&R C book long ago), but I think K&R had: char - 1byte short - 2bytes long - 4 bytes long long - 8bytes int - whatever the arch preferred, with a minimum of 2bytes (And, yes, Brian did disagree with Dennis and added "unsigned".) Personally, I think "long" should have remained 4bytes on all arches and that would have made code less painful to port... (I could live with "int" assumed to be at least 4bytes.) rick ps: And, yes, I still prefer "old C", but suffer through the ANSIisms.;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YTXPR01MB01891DF293FE5E2692CFDE23DD540>