From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22751 invoked by alias); 19 Sep 2004 20:56:20 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22744 invoked from network); 19 Sep 2004 20:56:19 -0000 Received: from unknown (HELO nile.gnat.com) (205.232.38.5) by sourceware.org with SMTP; 19 Sep 2004 20:56:19 -0000 Received: from localhost (localhost [127.0.0.1]) by nile.gnat.com (Postfix) with ESMTP id 7915EF2C2E; Sun, 19 Sep 2004 16:56:19 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09642-01-8; Sun, 19 Sep 2004 16:56:19 -0400 (EDT) Received: from [127.0.0.1] (hoosic.gnat.com [205.232.38.102]) by nile.gnat.com (Postfix) with ESMTP id 0CDE0F2C25; Sun, 19 Sep 2004 16:56:19 -0400 (EDT) Message-ID: <414DF271.4070307@gnat.com> Date: Sun, 19 Sep 2004 22:41:00 -0000 From: Robert Dewar User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040803 MIME-Version: 1.0 To: "Timothy J.Wood" Cc: Luchezar Belev , gcc@gcc.gnu.org Subject: Re: why not consfold sin(const) References: <20040919191429.22070.qmail@web52807.mail.yahoo.com> <414DDB4F.3030600@gnat.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at nile.gnat.com X-SW-Source: 2004-09/txt/msg01146.txt.bz2 Timothy J.Wood wrote: > How about defining a ctor for that .o file that calls the target's > elementary function at run time and puts it a global created by the > compiler? Unnecessarily messy, it's not that hard to get hold of high precision elementary functions (the code is certainly immediately available in Ada, so it must be available in C). > > This has some arguably less than ideal side effects (the global would > need to be in writable memory), but it seems to me that this is not > "impossible" as a previous message claimed. Nothing here is impossible! It's just a matter of whether it is worthwhile.