X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=F1vKHDfNGbj1cY7b fcNRzdt5NKmIzTIgsRTbEOzdR2eZ9aW8WI7h1WS4LvbGtdmKNQnCVoTYW+EabelS WWU7rrTq4dZH33EMVEAEjzxmUg/LIke5nCXZVtbLHEaETfgY5oW5g/ADY7jykBd+ UceiFNMkfw3kOmEOv8ud5YOzpUQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=qVw8h48yrKTlU0tgyPF7Px aIJ6A=; b=c8uxC10k05DJqZ6VEyi80g34/MaBLFHzy4venpw4JcKmv3U/qk3sx7 8plD/ad9/aNSIPwLQJnzrD60MV4UCnfoH6WnYThuxtLEjDgzIwpWKeMHHWnV/e6V YzOZE0JvyTY3xIE1lMX9Ejp2Zbv78/8AG91P64aBVoxvsf8yOhWJo= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_FAIL,SPF_HELO_PASS autolearn=no version=3.3.1 spammy=problemshtml, problems.html, docshtml, UD:docs.html X-HELO: gateway21.websitewelcome.com Subject: Re: Inefficient use of 64-bit addresses in Clang To: cygwin AT cygwin DOT com References: <732305300 DOT 268416262 DOT 1565603129541 DOT JavaMail DOT root AT zimbra54-e10 DOT priv DOT proxad DOT net> From: Agner Fog Message-ID: <024ce5b5-6024-b371-e382-5eef5d1d4a90@agner.org> Date: Wed, 14 Aug 2019 07:51:02 +0200 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: <732305300.268416262.1565603129541.JavaMail.root@zimbra54-e10.priv.proxad.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes It's a difference in memory model. clang 6.0.0 under ubuntu with --target=x86_64-pc-cygwin gives relative addresses, unless you specify -mcmodel=large. Cygwin clang with -mcmodel=small does the right thing: use relative addresses. The -mcmodel=small option appears to work differently for Linux and for Windows targets. I cannot find any documentation of this difference. See: https://bugs.llvm.org/show_bug.cgi?id=42983 On 12/08/2019 11.45, falk DOT tannhauser AT free DOT fr wrote: > References: <578eb489-9391-9009-82ad-676eeb4c1c92 AT agner DOT org> > In-Reply-To: <578eb489-9391-9009-82ad-676eeb4c1c92 AT agner DOT org> > > Could the different behaviour between Cygwin and Linux simply be due to different Clang versions? > The current version under Cygwin is 5.0.1, while the latest version available under Linux > appears to be 8.0.1 . > > Falk > > -- > 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 > > -- 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