
Procedure Call Standard FOR THE Arm Architecture Release 2020Q2 Document number: IHI 0042J Arm Ltd Jun 12, 2020 Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en CONTENTS 1 Preamble 2 1.1 Abstract.............................................. 2 1.2 Keywords............................................. 2 1.3 How to find the latest release of this specification or report a defect in it .......... 2 1.4 Licence .............................................. 2 1.5 Non-Confidential Proprietary Notice .............................. 2 1.6 Contents ............................................. 3 2 About This Document 5 2.1 Change Control ......................................... 5 2.2 References ............................................ 7 2.3 Terms and Abbreviations .................................... 7 2.4 Your licence to use this specification .............................. 9 2.5 Acknowledgements ....................................... 10 3 Scope 11 4 Introduction 12 4.1 Design Goals ........................................... 12 4.2 Conformance ........................................... 12 5 Data Types and Alignment 14 5.1 Fundamental Data Types .................................... 14 5.2 Endianness and Byte Ordering ................................. 15 5.3 Composite Types ......................................... 15 6 The Base Procedure Call Standard 18 6.1 Machine Registers ........................................ 18 6.2 Processes, Memory and the Stack ................................ 20 6.3 Subroutine Calls ......................................... 23 6.4 Result Return ........................................... 23 6.5 Parameter Passing ........................................ 24 6.6 Interworking ........................................... 26 7 The Standard Variants 28 7.1 VFP and SIMD vector Register Arguments ........................... 28 7.2 Arm Alternative Format Half-precision Floating Point values . 29 7.3 Read-Write Position Independence (RWPI) ........................... 29 7.4 Variant Compatibility ...................................... 30 8 Arm C and C++ Language Mappings 31 8.1 Data Types ............................................ 31 8.2 Argument Passing Conventions ................................. 37 9 APPENDIX Support for Advanced SIMD Extensions and MVE 38 I Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en 9.1 Introduction ........................................... 38 9.2 SIMD vector data types ..................................... 38 II Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en Procedure Call Standard FOR THE Arm Architecture, Release 2020Q2 Document number: IHI 0042J Release version: 2020Q2 CONTENTS 1 Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en CHAPTER ONE PREAMBLE 1.1 AbstrACT This document describes the Procedure Call Standard use by the Application Binary Interface (ABI) for the Arm architecture. 1.2 KEYWORDS Procedure call, function call, calling conventions, data layout 1.3 How TO fiND THE LATEST RELEASE OF THIS SPECIfiCATION OR REPORT A DEFECT IN IT Please check the Arm Developer site (https://developer.arm.com/architectures/system-architectures/ software-standards/abi) for a later release if your copy is more than one year old. Please report defects in this specification to [email protected]. 1.4 Licence THE TERMS OF YOUR ROYALTY FREE LIMITED LICENCE TO USE THIS ABI SPECIFICATION ARE GIVEN IN Your licence to use this specification (page 9) (Arm contract reference LEC-ELA-00081 V2.0). PLEASE READ THEM CAREFULLY. BY DOWNLOADING OR OTHERWISE USING THIS SPECIFICATION, YOU AGREE TO BE BOUND BY ALL OF ITS TERMS. IF YOU DO NOT AGREE TO THIS, DO NOT DOWNLOAD OR USE THIS SPECIFICATION. THIS ABI SPECIFICATION IS PROVIDED “AS IS” WITH NO WARRANTIES (SEE Your licence to use this specification (page 9) FOR DETAILS). 1.5 Non-ConfiDENTIAL Proprietary Notice This document is protected by copyright and other related rights and the practice or implementation of the information contained in this document may be protected by one or more patents or pending patent applications. No part of this document may be reproduced in any form by any means without the express prior written permission of Arm. No license, express or implied, by estoppel or otherwise to any intellectual property rights is granted by this document unless specifically stated. 2 Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en Procedure Call Standard FOR THE Arm Architecture, Release 2020Q2 Your access to the information in this document is conditional upon your acceptance that you will not use or permit others to use the information for the purposes of determining whether implementations infringe any third party patents. THIS DOCUMENT IS PROVIDED “AS IS”. ARM PROVIDES NO REPRESENTATIONS AND NO WAR- RANTIES, EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, NON-INFRINGEMENT OR FITNESS FOR A PARTICULAR PURPOSE WITH RESPECT TO THE DOCUMENT. For the avoidance of doubt, Arm makes no representation with respect to, and has undertaken no analysis to identify or understand the scope and content of, patents, copyrights, trade secrets, or other rights. This document may include technical inaccuracies or typographical errors. TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL ARM BE LIABLE FOR ANY DAM- AGES, INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIA- BILITY, ARISING OUT OF ANY USE OF THIS DOCUMENT, EVEN IF ARM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. This document consists solely of commercial items. You shall be responsible for ensuring that any use, duplication or disclosure of this document complies fully with any relevant export laws and regulations to assure that this document or any portion thereof is not exported, directly or indirectly, in violation of such export laws. Use of the word “partner” in reference to Arm’s customers is not intended to create or refer to any partnership relationship with any other company. Arm may make changes to this document at any time and without notice. If any of the provisions contained in these terms conflict with any of the provisions of any click through or signed written agreement covering this document with Arm, then the click through or signed written agreement prevails over and supersedes the conflicting provisions of these terms. This document may be translated into other languages for convenience, and you agree that if there is any conflict between the English version of this document and any translation, the terms of the English version of the Agreement shall prevail. The Arm corporate logo and words marked with ® or ™ are registered trademarks or trademarks of Arm Limited (or its subsidiaries) in the US and/or elsewhere. All rights reserved. Other brands and names mentioned in this document may be the trademarks of their respective owners. Please follow Arm’s trademark usage guidelines at http://www.arm.com/company/policies/trademarks. Copyright © 2003-2020 Arm Limited (or its affiliates). All rights reserved. Arm Limited. Company 02557590 registered in England. 110 Fulbourn Road, Cambridge, England CB1 9NJ. LES-PRE-20349 1.6 Contents Contents • Procedure Call Standard for the Arm® Architecture – Preamble (page 2) * Abstract (page 2) * Keywords (page 2) * How to find the latest release of this specification or report a defect in it (page 2) * Licence (page 2) 1.6. Contents 3 Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en Procedure Call Standard FOR THE Arm Architecture, Release 2020Q2 * Non-Confidential Proprietary Notice (page 2) * Contents (page 3) – About This Document (page 5) * Change Control (page 5) * References (page 7) * Terms and Abbreviations (page 7) * Your licence to use this specification (page 9) * Acknowledgements (page 10) – Scope (page 11) – Introduction (page 12) * Design Goals (page 12) * Conformance (page 12) – Data Types and Alignment (page 14) * Fundamental Data Types (page 14) * Endianness and Byte Ordering (page 15) * Composite Types (page 15) – The Base Procedure Call Standard (page 18) * Machine Registers (page 18) * Processes, Memory and the Stack (page 20) * Subroutine Calls (page 23) * Result Return (page 23) * Parameter Passing (page 24) * Interworking (page 26) – The Standard Variants (page 28) * VFP and SIMD vector Register Arguments (page 28) * Arm Alternative Format Half-precision Floating Point values (page 29) * Read-Write Position Independence (RWPI) (page 29) * Variant Compatibility (page 30) – Arm C and C++ Language Mappings (page 31) * Data Types (page 31) * Argument Passing Conventions (page 37) – APPENDIX Support for Advanced SIMD Extensions and MVE (page 38) * Introduction (page 38) * SIMD vector data types (page 38) 4 Chapter 1. Preamble Copyright © 2003 - 2020 Arm Limited or its affiliates. All rights reserved. IHI0042J_2020Q2_00_en CHAPTER TWO ABOUT THIS DOCUMENT 2.1 Change Control 2.1.1 Current Status AND Anticipated Changes The following support level definitions are used by the Arm ABI specifications: Release Arm considers this specification to have enough implementations, which have received suffi- cient testing, to verify that it is correct. The details of these criteria
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages43 Page
-
File Size-