From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30257 invoked by alias); 18 Jun 2007 20:46:15 -0000 Received: (qmail 30248 invoked by uid 22791); 18 Jun 2007 20:46:13 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Jun 2007 20:46:07 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I0O6u-0006S0-Jf for gcc-bugs@gcc.gnu.org; Mon, 18 Jun 2007 13:46:04 -0700 Message-ID: <11183699.post@talk.nabble.com> Date: Mon, 18 Jun 2007 20:46:00 -0000 From: tom peng To: gcc-bugs@gcc.gnu.org Subject: Size of C/C++ data type from GNU GCC/g++ compiled ELF 64-bit LSB executable, AMD x86-64 vs. ELF 32-bit LSB executable, Intel 80386 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tompeng@microsoft.com X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2007-06/txt/msg01511.txt.bz2 Hi, I need experts to shed light on C/C++ data type size inconsistencies when running 64-bit and 32-bit ELF executables compiled by GNU/GCC g++/gcc Following are results of C/C++ data type size from code " cout << "data type" << sizeof(data type) << endl " : | 32-bit | 64-bit ------------------------------- int | 4 | 4 ------------------------------- long int | 4 | 8 ------------------------------- signed long int | 4 | 4 ------------------------------- ulong | 4 | 8 (sys/types.h) ------------------------------- long double | 12 | 16 Thank in advance, Tom -- View this message in context: http://www.nabble.com/Size-of-C-C%2B%2B-data-type-from-GNU-GCC-g%2B%2B-compiled-ELF-64-bit-LSB-executable%2C-AMD-x86-64-vs.-ELF-32-bit-LSB-executable%2C-Intel-80386-tf3942710.html#a11183699 Sent from the gcc - bugs mailing list archive at Nabble.com.