From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id 708223858D37 for ; Thu, 27 Jul 2023 23:13:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 708223858D37 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4003a.ext.cloudfilter.net ([10.228.9.183]) by cmsmtp with ESMTP id P0TNqfmLY6NwhPAB7qkLmI; Thu, 27 Jul 2023 23:13:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1690499633; bh=cUCCPBWO8X744xMRANpFalK2Wps7O9TsBPr+BOsJN98=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=OapunmW7WKx98K4O+BBRiVQentLZS4GXKtFPkQIW8WshOxMpwmuG7rxeuEXTXHXEo QOQJQ+3CCvbv/zjjDDQrSaQHKJVAst8SSFi2hLKaxn7UBy+hLRmoxWGeJmFHUfOOQz JEr3B6LYFP0eTcCzErxV07xLPodR+xomg0QBjgxJXwYv1FU8vlVOlN9B88ouwrk4Sd x+CC8wTVSmgJ0JwcMLMgiyktIH031pb0xDxHuq9SFK0b2tKonyOgjHneDaFkSsv3UO r1eCRH6l8lENiY0VJMpJh2dykLx0KEGhhSoa2cZt3y2PRDl1A449RN4eVNdOjfyqPO U/rhsJbAY/0XQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id PAB6qSU4CcyvuPAB6qpFOa; Thu, 27 Jul 2023 23:13:53 +0000 X-Authority-Analysis: v=2.4 cv=VbHkgXl9 c=1 sm=1 tr=0 ts=64c2fa31 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=p1iLBaz1P5q0YTkUNBMA:9 a=QEXdDO2ut3YA:10 a=fKDolfhuksMA:10 a=_FVE-zBwftR9WsbkzFJk:22 Message-ID: <6408c9e9-6bae-1032-58f5-8b1a302b1756@Shaw.ca> Date: Thu, 27 Jul 2023 17:13:52 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Reply-To: newlib@sourceware.org Subject: Re: Why int32_t is long int on 32 Bit Intel? Content-Language: en-CA To: newlib@sourceware.org References: Cc: "panda.trooper" From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfBYbrVZbMc4bcUDLKdvD+7C56wLre0pyktKr9qHNZpqEmzgTKmB/FPbt5VnqdyVLeqsJY0fbfObyAHalzbCt/BkKkcFPcbmL6azPrYgc0XsZWEgFdZXx S9wxgJyuFMPZ6wYTdEVObtDzXFWr0bp248WQFv7uoFb7I2oDxY3i9f72KQ8D10Rn+IURUNeY/U7BVYOHgdW/w/aBmn4s+6S530zQueQSyJZeEbmTRv/flcUy X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-07-27 05:55, panda.trooper wrote: > Hi, can somebody explain what is the reason behind the architectural decision that on x86 the type of int32_t is long int by default and not int when using newlib? Lots of embedded processors have 16 bit int and 32 bit long, and 80186 compatibles are still being produced and sold, although gcc -m16 now has limitations. [The ancient PDP-11 is still supported by gcc 13: https://gcc.gnu.org/onlinedocs/gcc/gcc-command-options/machine-dependent-options/pdp-11-options.html probably because it may still be exemplary CISC ISA in comp arch courses using simulators like SimH et al.] -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry