From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20772 invoked by alias); 28 Aug 2008 02:21:08 -0000 Received: (qmail 20762 invoked by uid 22791); 28 Aug 2008 02:21:07 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0708.google.com (HELO rv-out-0708.google.com) (209.85.198.242) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Aug 2008 02:20:33 +0000 Received: by rv-out-0708.google.com with SMTP id c5so134702rvf.56 for ; Wed, 27 Aug 2008 19:20:31 -0700 (PDT) Received: by 10.115.79.1 with SMTP id g1mr839182wal.61.1219890031583; Wed, 27 Aug 2008 19:20:31 -0700 (PDT) Received: by 10.114.204.19 with HTTP; Wed, 27 Aug 2008 19:20:31 -0700 (PDT) Message-ID: Date: Sat, 30 Aug 2008 23:14:00 -0000 From: "Pan ruochen" To: gcc-help@gcc.gnu.org Subject: Can a C function return TWO integers in registers on MIPS? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00313.txt.bz2 Hi All, I'm writing code in C language for MIPS execption handler. There is a function which returns two integers. For optimizing the performance, I want gcc to generate code where these two integers are returned in registers v0 & v1, instead of in memory. Can gcc do this? ------------- Best Regards, PRC Aug 28, 2008