From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6917 invoked by alias); 10 Mar 2010 00:15:59 -0000 Received: (qmail 6906 invoked by uid 22791); 10 Mar 2010 00:15:58 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from lo.gmane.org (HELO lo.gmane.org) (80.91.229.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Mar 2010 00:15:52 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Np9aV-0003kl-01 for gcc-help@gcc.gnu.org; Wed, 10 Mar 2010 01:15:47 +0100 Received: from ip-118-90-115-45.xdsl.xnet.co.nz ([118.90.115.45]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Mar 2010 01:15:46 +0100 Received: from n.sherlock by ip-118-90-115-45.xdsl.xnet.co.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Mar 2010 01:15:46 +0100 To: gcc-help@gcc.gnu.org From: Nicholas Sherlock Subject: Re: -fdefault-integer-8 in c Date: Wed, 10 Mar 2010 00:15:00 -0000 Message-ID: References: <323eda51003091441l1c6292a2t66a737ae57833751@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.3.0 In-Reply-To: <323eda51003091441l1c6292a2t66a737ae57833751@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2010-03/txt/msg00128.txt.bz2 On 10/03/2010 11:41 a.m., José Luis García Pallero wrote: > Hello, > Is possible to force integers to be 8 bytes length in gcc as in > gfortran? I need to do some maths and I need a matrix larger than 2GB > but my functiosns are programmed with indexes as int. #define int long ? :) I think the best way to do that would be to replace int with some type like "matrix_index", that way you can either: typedef int matrix_index; or typedef long matrix_index; Depending on how much precision you want at the time. Cheers, Nicholas Sherlock