From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 91578 invoked by alias); 18 Aug 2019 16:24:25 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 91525 invoked by uid 89); 18 Aug 2019 16:24:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*M:9587, Nope X-HELO: gateway36.websitewelcome.com Received: from gateway36.websitewelcome.com (HELO gateway36.websitewelcome.com) (192.185.201.2) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 18 Aug 2019 16:24:20 +0000 Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway36.websitewelcome.com (Postfix) with ESMTP id 7BAB4400CA1DF for ; Sun, 18 Aug 2019 10:49:35 -0500 (CDT) Received: from gator4009.hostgator.com ([192.185.4.20]) by cmsmtp with SMTP id zNychHUCY2qH7zNychG6fi; Sun, 18 Aug 2019 11:24:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=agner.org; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=LGPlKygfu5eelf38OVLPXRKdLpk41+Ijw40r+IKHSKI=; b=Fij9EwK+GKY07sXtQ4mckk4ctc Ptqc8cQwDpNHdZ87eb3FS/ntiqj2DCfGLmlDcTtZ/mV2SbdPWJgCigWbpOUZ5tcxl26mIod8JN+// 4Q5mndSZMcZBiu/1/txNkmzvFkVTrj/m50HTqvRDqdUO3BhCsh2tnnxIqn24BhC3ARcGBkJN1+9wi U6Bi2YlReGBmpYXbiUQRDsa/cG/3OsaUv4KWDmk3PvbVxWRjQz1B2w382J/8OANc6S0ixSww3kQD5 RE8PElv0IbEavYbX1+oxHsD6A10KE/VxobI2EaaeW1yn2JAg+tTgMheTR8sPWjfRDc7LAcLqi1XKG xPw3rBJw==; Received: from 0190101441.0.fullrate.ninja ([2.110.93.203]:52088 helo=[192.168.1.49]) by gator4009.hostgator.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1hzNyc-000XMW-7f for cygwin@cygwin.com; Sun, 18 Aug 2019 11:24:18 -0500 Subject: Re: Clang is using the wrong memory model To: cygwin@cygwin.com References: <024ce5b5-6024-b371-e382-5eef5d1d4a90@agner.org> <075477ca-e031-39ea-3dfe-bc8bc2fc8fa6@agner.org> <20190816082603.GR11632@calimero.vinschen.de> <8d594f4d-17e0-447a-8b18-1ed620815e0f@agner.org> <20190816095200.GU11632@calimero.vinschen.de> <2024f551-66e6-47c5-a0b6-2dfa735a690d@agner.org> <20190816111133.GV11632@calimero.vinschen.de> <6008d30a-cd6c-5449-2933-a041e804856c@agner.org> <20190817081605.GX11632@calimero.vinschen.de> <17081147-f46a-51bf-65e9-3df7748b1780@agner.org> <20190818115739.GD11632@calimero.vinschen.de> From: Agner Fog Message-ID: Date: Sun, 18 Aug 2019 18:14:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190818115739.GD11632@calimero.vinschen.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-08/txt/msg00266.txt.bz2 On 18/08/2019 13.57, Corinna Vinschen wrote: > Nope, Cygwin uses the Windows loader. Then, how do you do the extra linking? What is producing the "Cygwin runtime failure" message when loading/linking a DLL fails? > If the medium model is wasteful in clang, that's a clang > optimization problem, not a Cygwin problem. The medium model in Clang is not wasteful. It does exactly what it is designed to do. It was never designed with Cygwin in mind. The program build with a medium model is wasteful because it makes all addresses 64 bits when few or no addresses actually need to be 64 bits. > If you want to use the small model in your own projects, great, if it > works for you. It is not for my own project. I am writing manuals on how to optimize software. Agner -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple