delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/04/24/14:31:00

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=P4tSXr+Z9gaEBobcO6wRK5FrKj0Zgu2b7E5Sd3phFEtZZYj87JQUF
iVJzXrSZdROAnIpfiDgiqga6zuWSTcTSIMlU80zW+41T8CLmSFyD3KoLwW+LuEw9
8NyafQ2apsHtnjU7RBfh1XOn8PjmnzTF1dRm1DBIV6441OMCnH1FeQ=
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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=JrAKZ6gclfd5e07dCNGKvgYZ0Bw=; b=qsGPN+K/egXG2AYo1JJYPYySllu4
9+Wh4TJ5hO8gQXugBctIL7ap8QcMEvwhk4XIznB3KzbO+Hdp2+bPtdXlToqCRHLM
f4kByMNYbcA6lVd8PeylFoGEAEzIXrid+hX3Tvl6j0RV7QiP1CSieFlNUhp5vkYD
0fs6DeN5QWy9BCw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1
Date: Wed, 24 Apr 2013 20:30:42 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Porting to 64 bit Cygwin (was Re: Difference in 32/64-bit curl.)
Message-ID: <20130424183042.GC26397@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <51766C22 DOT 10702 AT bahnhof DOT se> <51770372 DOT 4070408 AT t-online DOT de> <20130424125930 DOT GQ26397 AT calimero DOT vinschen DOT de> <20130424134749 DOT GR26397 AT calimero DOT vinschen DOT de> <517823A4 DOT 8060001 AT xs4all DOT nl>
MIME-Version: 1.0
In-Reply-To: <517823A4.8060001@xs4all.nl>
User-Agent: Mutt/1.5.21 (2010-09-15)

On Apr 24 20:25, Erwin Waterlander wrote:
> Op 24-4-2013 15:47, Corinna Vinschen schreef:
> >On Apr 24 14:59, Corinna Vinschen wrote:
> >>On Apr 23 23:56, Christian Franke wrote:
> >>>Possibly a __builtin_va_list related gcc bug.
> >>This is rather unlikely.  That code is shared between Cygwin and
> >>Mingw, and chances are that the bug would have been found already.
> >>
> >>What about a type issue?  int vs. long?
> >For clearness I decided to add a quick lecture.  Hope that's ok.
> >
> >The Cygwin x86_64 toolchain is using the LP64(*) data model.  That means,
> >in contrast to Windows, which uses an LLP64(*) data model, sizeof(long)
> >!= sizeof(int), just as on Linux.
> >
> >For comparison:
> >
> >                  Cygwin   Windows  Cygwin
> >		 Linux    x86_64   Linux
> >		 Windows           x86_64
> >		 i686
> >
> >sizeof(int)         4        4        4
> >sizeof(long)        4        4        8
> >sizeof(size_t)      4        8        8
> >sizeof(void*)       4        8        8
> 
> And these. Interesting for people handling Unicode (wide) text:
> 
> sizeof(wchar_t)       2        2        2
> sizeof(wint_t)          2        2        4

No, that's not correct:

  sizeof(wint_t)          4        4        4

This is very important because of WEOF.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019