From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13436 invoked by alias); 7 Oct 2002 12:28:34 -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 13422 invoked from network); 7 Oct 2002 12:28:33 -0000 Received: from unknown (HELO hotmail.com) (207.68.163.207) by sources.redhat.com with SMTP; 7 Oct 2002 12:28:33 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 7 Oct 2002 05:28:30 -0700 Received: from 218.108.29.238 by sea1fd.sea1.hotmail.msn.com with HTTP; Mon, 07 Oct 2002 12:28:30 GMT X-Originating-IP: [218.108.29.238] From: =?gb2312?B?5rEg578=?= To: cgen@sources.redhat.com Bcc: Subject: About CGEN's RTL Date: Mon, 07 Oct 2002 05:28:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed Message-ID: X-OriginalArrivalTime: 07 Oct 2002 12:28:30.0382 (UTC) FILETIME=[0B5134E0:01C26DFD] X-SW-Source: 2002-q4/txt/msg00003.txt.bz2 hi I am now trying to write an .cpu file whose ISA contains some complex instructions, thereby it needs to invoke c code using c-code,c-call or c-raw-call. I found in sparccom.cpu that there is an expression of (c-call made symbol operand1 operand2 ...). It says in the comment that 'symbol' is a c function. I guess this expression means an c function call, and the function was like symbol(operand1, operand2 ...), isn't it? If so, where is the function symbol(operand1 operand2 ...)? In the cpu description of sparccom, I found (set rd (c-call WI handler pc rs1 rs2)), but I can't find the function description of 'handler'! Where do I write the c funtion how to announce it to the .cpu file? thank you for your help! Dam Wang _________________________________________________________________ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£http://www.hotmail.com/cn