From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23159 invoked by alias); 22 Jan 2003 06:05:42 -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 23152 invoked from network); 22 Jan 2003 06:05:41 -0000 Received: from unknown (HELO ngate.noida.hcltech.com) (202.54.110.230) by 172.16.49.205 with SMTP; 22 Jan 2003 06:05:41 -0000 Received: from exch-01.noida.hcltech.com (exch-01 [204.160.254.29]) by ngate.noida.hcltech.com (8.9.3/8.9.3) with ESMTP id LAA25710; Wed, 22 Jan 2003 11:31:56 +0530 Received: by exch-01.noida.hcltech.com with Internet Mail Service (5.5.2656.59) id ; Wed, 22 Jan 2003 11:29:42 +0530 Message-ID: From: "D.Venkatasubramanian, Noida" To: Kazu Hirata , Andrew.Volkov@transas.com Cc: gcc@gcc.gnu.org, crossgcc@sources.redhat.com, gnuh8@gnuh8.org.uk, binutils@sources.redhat.com Subject: RE: New targets to Binutils for H8 series Date: Wed, 22 Jan 2003 13:43:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-01/txt/msg00982.txt.bz2 Hi All, I was interested in implementing some extensions to the H8300 simulator and was thinking of adding some code to crt0.S. I would like this code to be available when the code would be run under a simulator. I think it would be a good idea to add a target, say -msim, so that the code is generated for simulated target only. In the context, I was actually trying to include commandline support to the simulator and so would have to setup the stack with the commandline arguments in crt0.S. I didn't think it would be a good idea to add the code to the default implementation, by adding the target, we could write any simulator specific code inside a #ifdef __SIMULATOR__ kind of structure, similar to the ARM implementation. Any comments or suggestions would be useful. Thanks and Best Regards, Venky