From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22638 invoked by alias); 3 Apr 2003 22:46:53 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22628 invoked from network); 3 Apr 2003 22:46:50 -0000 Received: from unknown (HELO mail.kloo.net) (63.192.214.25) by sources.redhat.com with SMTP; 3 Apr 2003 22:46:50 -0000 Received: by mail.kloo.net (Postfix, from userid 504) id 9A6CE3B0308; Thu, 3 Apr 2003 15:36:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.kloo.net (Postfix) with ESMTP id 95CF93B4494; Thu, 3 Apr 2003 15:36:40 -0800 (PST) Date: Fri, 04 Apr 2003 00:05:00 -0000 From: To: Gabriele Caracausi Cc: GCC ML Subject: Re: help about new porting (.h file) In-Reply-To: <20030403095715.19015.qmail@mx7.aruba.it> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-04/txt/msg00161.txt.bz2 On Thu, 3 Apr 2003, Gabriele Caracausi wrote: > Hi all, > > I'm working on GCC porting of PIC18C and I've a couple of questions. > > I'm studing ip2k porting because this is the most similar to PIC18C. > > I report from official "Using and Porting GCC" (p. 445), "Pmode is defined > as an alias for the machine mode for pointers. On most machines, define this > to be the integer mode corresponding to the width of a hardware pointer; > SImode on 32 bit machine or DImode on 64-bit machines. [...] The width of > Pmode must be at least as large as the value of POINTER_SIZE. If it is not > equal you must define the macro POINTERS_EXTEND_UNSIGNED to specify how > pointers are extended to Pmode." > > In the IP2k porting (ip2k.h): > * POINTER_SIZE is setted to 16 bit > * Pmode is setted to HImode > * INT_TYPE_SIZE is setted to 16 bit so HImode should be 8 bit. from "rtl.texi" line 890 of 3502: @findex HImode @item HImode ``Half-Integer'' mode represents a two-byte integer. HImode is always 16 bits. Toshi