From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 104245 invoked by alias); 2 Mar 2020 10:39:28 -0000 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 Received: (qmail 104237 invoked by uid 89); 2 Mar 2020 10:39:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-5.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Envelope-From:sk:Richard X-HELO: foss.arm.com Received: from foss.arm.com (HELO foss.arm.com) (217.140.110.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Mar 2020 10:39:26 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC2BF31B; Mon, 2 Mar 2020 02:39:24 -0800 (PST) Received: from e120077-lin.cambridge.arm.com (e120077-lin.cambridge.arm.com [10.2.78.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4C8E93F6CF; Mon, 2 Mar 2020 02:39:24 -0800 (PST) Subject: Re: Is there anyway to make the function get parmters from registers not stack during more than 4 parameters on arm port? To: tugouxp <13824125580@163.com>, gcc-help@gcc.gnu.org References: <435c69f7.445b.17095a6e91b.Coremail.13824125580@163.com> From: "Richard Earnshaw (lists)" Message-ID: Date: Mon, 02 Mar 2020 10:39:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <435c69f7.445b.17095a6e91b.Coremail.13824125580@163.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2020-03/txt/msg00005.txt On 01/03/2020 10:31, tugouxp wrote: > HI guys: > i have a function with prototype more than 4 parameters which invoke form syscall. > > > int foobar(int a, int b, int c, int d, int e, int f) > on arm port, a,b, c, d could get from r0-r3 according arm AACPS ABI, > but e, and f would get from stack. > > > but how to deal with if i want all of th 6 paramters get from registers not stack? > > > thank you! > Sorry, no that can't be done. At least, not without developing a new ABI. R.