From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3685 invoked by alias); 8 Sep 2002 03:46:26 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 3676 invoked from network); 8 Sep 2002 03:46:25 -0000 Received: from unknown (HELO neon-gw.transmeta.com) (63.209.4.196) by sources.redhat.com with SMTP; 8 Sep 2002 03:46:25 -0000 Received: (from root@localhost) by neon-gw.transmeta.com (8.9.3/8.9.3) id UAA31088; Sat, 7 Sep 2002 20:46:19 -0700 Received: from mailhost.transmeta.com(10.1.1.15) by neon-gw.transmeta.com via smap (V2.1) id xma031082; Sat, 7 Sep 02 20:46:03 -0700 Received: from casey.transmeta.com (casey.transmeta.com [10.10.25.22]) by deepthought.transmeta.com (8.11.6/8.11.6) with ESMTP id g883k9j01057; Sat, 7 Sep 2002 20:46:09 -0700 (PDT) Received: (from dje@localhost) by casey.transmeta.com (8.9.3/8.7.3) id UAA05840; Sat, 7 Sep 2002 20:46:09 -0700 From: Doug Evans MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15738.51201.76375.295958@casey.transmeta.com> Date: Sat, 07 Sep 2002 20:46:00 -0000 To: Shehryar Humayun Cc: cgen@sources.redhat.com Subject: C-style assembly In-Reply-To: <20020908032145.87766.qmail@web21207.mail.yahoo.com> References: <20020908032145.87766.qmail@web21207.mail.yahoo.com> X-SW-Source: 2002-q3/txt/msg00067.txt.bz2 Shehryar Humayun writes: > Hi, > The DSP chip I am working on has an assembly which has > a c-style syntax, e.g. to add two registers r1 and r2 > and put the result in r1, the syntax is > r1 = r1 + r2 > Hence the mnemonic doesn't come first. Does any one > know of a chip which has a c-style assembly? Can any > one give me an idea about how I should describe my > instructiions using RTL in the .cpu file for such a > syntax? No effort has been put into supporting C style assembly language. If you want to use cgen's assembler support, I suggest writing the .cpu using "normal" assembly syntax and write a separate program(/library) that converts C-style to normal-style.