From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9565 invoked by alias); 8 Jul 2003 16:16:03 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 9460 invoked from network); 8 Jul 2003 16:16:02 -0000 Received: from unknown (HELO rediffmail.com) (203.199.83.146) by sources.redhat.com with SMTP; 8 Jul 2003 16:16:02 -0000 Received: (qmail 11302 invoked by uid 510); 8 Jul 2003 16:15:40 -0000 Date: Tue, 08 Jul 2003 16:16:00 -0000 Message-ID: <20030708161540.11301.qmail@webmail24.rediffmail.com> Received: from unknown (202.140.142.131) by rediffmail.com via HTTP; 08 jul 2003 16:15:40 -0000 MIME-Version: 1.0 From: "V Robert" Reply-To: "V Robert" To: gcc-help@gcc.gnu.org Subject: need help Content-type: text/plain; format=flowed Content-Disposition: inline X-SW-Source: 2003-07/txt/msg00105.txt.bz2 Hi I'm porting GCC for a 16-bit target (i.e. the register size and memory operands are 16-bit). In the target header file, I've given #define INT_TYPE_SIZE 16 #define LONG_TYPE_SIZE 16, etc My issue is that, for immediate operands greater than 16-bits, my ported compiler is giving "DImode" i.e. 8 bytes. For example, the below C statement int i=sizeof(0x10000); produces assembly which assigns 8 to i. BUT, i'm expecting 2 to be assigned for i. What should I do to make my ported compiler treat immediate values greater than 16-bits as HImode operand? with regards robert ___________________________________________________ Click below to experience Sooraj Barjatya's latest offering 'Main Prem Ki Diwani Hoon' starring Hrithik Roshan, Abhishek Bachchan & Kareena Kapoor http://www.mpkdh.com