From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26289 invoked by alias); 9 Jul 2003 18:42:26 -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 26242 invoked from network); 9 Jul 2003 18:42:24 -0000 Received: from unknown (HELO lifesupport.shutdown.com) (66.92.48.59) by sources.redhat.com with SMTP; 9 Jul 2003 18:42:24 -0000 Received: (from llewelly@localhost) by lifesupport.shutdown.com (8.11.2/8.11.2) id h69Ic9M16409; Wed, 9 Jul 2003 11:38:09 -0700 (PDT) To: "V Robert" Cc: gcc-help@gcc.gnu.org Subject: Re: need help References: <20030708161540.11301.qmail@webmail24.rediffmail.com> From: LLeweLLyn Reese Date: Wed, 09 Jul 2003 18:42:00 -0000 In-Reply-To: <20030708161540.11301.qmail@webmail24.rediffmail.com> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-07/txt/msg00132.txt.bz2 "V Robert" writes: > 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? [snip] I think you should re post this on gcc at gcc.gnu.org, where you are likely to get better feedback on this sort of problem.