From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 102531 invoked by alias); 22 Aug 2017 15:25:20 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 101934 invoked by uid 89); 22 Aug 2017 15:25:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=HTo:D*it, Hx-languages-length:1065 X-HELO: relay1.mentorg.com Date: Tue, 22 Aug 2017 15:25:00 -0000 From: Joseph Myers To: Renzo Davoli CC: Subject: Re: [PATCH] New feature proposal: pureglibc In-Reply-To: <20170822144917.soo7pded2hyfxe36@cs.unibo.it> Message-ID: References: <20170822144917.soo7pded2hyfxe36@cs.unibo.it> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) X-SW-Source: 2017-08/txt/msg01066.txt.bz2 On Tue, 22 Aug 2017, Renzo Davoli wrote: > A pure C library is a library providing only the former item. I'd expect such a library not to use any existing OS sysdeps directory in glibc, or to use any of the existing syscalls code; rather, it would look like a new OS to glibc and have an associated GCC port for compiling for that OS. We removed the NaCl port, but it may illustrate the sort of things that are relevant (as may the not-in-tree WebAssembly port that also exists). Of course glibc builds and installs various executables, so there would be a question of how generic executables can be built and installed for such an OS environment (maybe one option for running such executables would be an execution environment that sets a breakpoint on the hook used for interfacing with the system and acts accordingly when that breakpoint is reached, in addition to execution environments that substitute an alternative implementation of that hook for direct execution). -- Joseph S. Myers joseph@codesourcery.com