From owner-freebsd-threads@FreeBSD.ORG Mon Dec 19 17:47:21 2011 Return-Path: Delivered-To: threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2ADA1065675; Mon, 19 Dec 2011 17:47:21 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id 70CE38FC16; Mon, 19 Dec 2011 17:47:21 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 6E0787300A; Mon, 19 Dec 2011 18:46:24 +0100 (CET) Date: Mon, 19 Dec 2011 18:46:24 +0100 From: Luigi Rizzo To: Warner Losh Message-ID: <20111219174624.GA13576@onelab2.iet.unipi.it> References: <58923.1324292241@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: threads@freebsd.org, Poul-Henning Kamp , Tijl Coosemans , freebsd-arch@freebsd.org Subject: Re: [Patch] C1X threading support X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2011 17:47:21 -0000 On Mon, Dec 19, 2011 at 10:09:53AM -0700, Warner Losh wrote: > > On Dec 19, 2011, at 3:57 AM, Poul-Henning Kamp wrote: > > > In message <201112191152.22907.tijl@coosemans.org>, Tijl Coosemans writes: > > > >>> Big/Little Endian API ? > >>> > >>> Naah, nobody moves binary data between computers. > >> > >> Yes, but rather than having the programmer remember when to swap bytes, > >> it would be better if he could just declare a variable big/little > >> endian and have the compiler figure it out. > > > > You'd think so, wouldn't you ? > > Intel has a compiler that allows one to declare things are big or little endian and then things work. A certain large router vendor used it to port its software that was big endian only at a very deep layer to Intel x86... > > Linux marks things as beXX or leXX and uses static analysis to prevent mixing. > > There's a lot of prior art for the committee to choose from. and that would be the definition of a blacklist, right ? :) cheers luigi