Application binary interface

A high-level comparison of in-kernel and kernel-to-userspace APIs and ABIs
The Linux kernel and GNU C Library define the Linux API. After compilation, the binaries offer an ABI. Keeping this ABI stable over a long time is important for ISVs.

In computer software, an application binary interface (ABI) is an interface between two binary program modules. Often, one of these modules is a library or operating system facility, and the other is a program that is being run by a user.

An ABI defines how data structures or computational routines are accessed in machine code, which is a low-level, hardware-dependent format. In contrast, an application programming interface (API) defines this access in source code, which is a relatively high-level, hardware-independent, often human-readable format. A common aspect of an ABI is the calling convention, which determines how data is provided as input to, or read as output from, computational routines. Examples of this are the x86 calling conventions.

Adhering to an ABI (which may or may not be officially standardized) is usually the job of a compiler, operating system, or library author. However, an application programmer may have to deal with an ABI directly when writing a program in a mix of programming languages, or even compiling a program written in the same language with different compilers.

Description

Details covered by an ABI include the following:

  • Processor instruction set, with details like register file structure, stack organization, memory access types, etc.
  • Sizes, layouts, and alignments of basic data types that the processor can directly access
  • Calling convention, which controls how the arguments of functions are passed, and return values retrieved; for example, it controls the following:
    • Whether all parameters are passed on the stack, or some are passed in registers
    • Which registers are used for which function parameters
    • Whether the first function parameter passed on the stack is pushed first or last
    • Whether the caller or callee is responsible for cleaning up the stack after the function call
  • How an application should make system calls to the operating system, and if the ABI specifies direct system calls rather than procedure calls to system call stubs, the system call numbers
  • In the case of a complete operating system ABI, the binary format of object files, program libraries, etc.

Complete ABIs

A complete ABI, such as the Intel Binary Compatibility Standard (iBCS),[1] allows a program from one operating system supporting that ABI to run without modifications on any other such system, provided that necessary shared libraries are present, and similar prerequisites are fulfilled.

ABIs can also standardize details such as the C++ name mangling,[2] exception propagation,[3] and calling convention between compilers on the same platform, but do not require cross-platform compatibility.

Embedded ABIs

An embedded-application binary interface (EABI) specifies standard conventions for file formats, data types, register usage, stack frame organization, and function parameter passing of an embedded software program, for use with an embedded operating system.

Compilers that support the EABI create object code that is compatible with code generated by other such compilers, allowing developers to link libraries generated with one compiler with object code generated with another compiler. Developers writing their own assembly language code may also interface with assembly generated by a compliant compiler.

EABIs are designed to optimize for performance within the limited resources of an embedded system. Therefore, EABIs omit most abstractions that are made between kernel and user code in complex operating systems. For example, dynamic linking may be avoided to allow smaller executables and faster loading, fixed register usage allows more compact stacks and kernel calls, and running the application in privileged mode allows direct access to custom hardware operation without the indirection of calling a device driver.[4] The choice of EABI can affect performance.[5][6]

Widely used EABIs include PowerPC,[4] Arm EABI[7] and MIPS EABI.[8] Specific software implementations like the C library may impose additional limitations to form more concrete ABIs; one example is the GNU OABI and EABI for ARM, both of which are subsets of the ARM EABI .[9]

See also

References

  1. ^ Intel Binary Compatibility Standard (iBCS)
  2. ^ "Itanium C++ ABI". (compatible with multiple architectures)
  3. ^ "Itanium C++ ABI: Exception Handling". (compatible with multiple architectures)
  4. ^ a b "EABI Summary". PowerPC Embedded Application Binary Interface: 32-Bit Implementation (PDF) (Version 1.0 ed.). Freescale Semiconductor, Inc. 1 October 1995. pp. 28–30.
  5. ^ "Debian ARM accelerates via EABI port". Linuxdevices.com. 16 October 2016. Archived from the original on 21 January 2007. Retrieved 11 October 2007.
  6. ^ Andrés Calderón and Nelson Castillo (14 March 2007). "Why ARM's EABI matters". Linuxdevices.com. Archived from the original on 31 March 2007. Retrieved 11 October 2007.
  7. ^ "ABI for the Arm Architecture". Developer.arm.com. Retrieved 4 February 2020.
  8. ^ Eric Christopher (11 June 2003). "mips eabi documentation". [email protected] (Mailing list). Retrieved 19 June 2020.
  9. ^ "ArmEabiPort". Debian Wiki. Strictly speaking, both the old and new ARM ABIs are subsets of the ARM EABI specification, but in everyday usage the term "EABI" is used to mean the new one described here and "OABI" or "old-ABI" to mean the old one.

Read other articles:

Loire-Atlantique (44) Informasi Region: Pays-de-la-Loire Prefektur: Nantes Subprefektur: AncenisChâteaubriantSaint-Nazaire Penduduk - Jumlah (1999) - Kepadatan 1 134 266 logxantoj166 jiwa/km² Area 6 815 km² Arondisemen4 Kanton 59 Komune 221 PresidenDewan Jenderal Patrick Mareschal Lokasi Loire-Atlantique (bahasa Breton Liger-Atlantel) adalah departemen di Prancis (nomor urut 44) di barat laut Prancis dekat perbatasan Samudra Atlantik dan muara Sungai Loire. M...

 

Changkat KeruingChangkat Keruing StreetCountryMalaysiaStatePerakEstablished1900sKetinggian56 m (183,7 ft)Zona waktuUTC+8 (MST) • Musim panas (DST)Not observed Changkat Keruing terletak di Sitiawan, Perak. Keruing ialah sejenis pohon yang mempunyai nilai uyang tinggi . Changkat berarti tanah yang terangkat atau tanah tinggi tetapi tidak setinggi bukit. Referensi lbs Perak Darul RidzuanDaerah Kinta • Larut, Matang dan Selama • Hilir Perak • Manjung • Batang Pa...

 

1884 book by Friedrich Engels The Origin of the Family, Private Property and the State First edition (1884)AuthorFriedrich EngelsOriginal titleDer Ursprung der Familie, des Privateigenthums und des StaatsLanguageGermanSubjectsCapitalism, Gender roles, Nuclear family, PatriarchyPublication date1884Published in English1902TextThe Origin of the Family, Private Property and the State at Wikisource The Origin of the Family, Private Property and the State: in the Light of the Researches o...

Partai Bersatu Aceh Ketua umumAhmad Farhan HamidSekretaris JenderalMuhammad SalehDibentuk2007Kantor pusatKota Banda AcehIdeologiRegionalisme AcehNomor urut40Kursi di DPRN/A (Partai baru)Politik IndonesiaPartai politikPemilihan umum Partai Bersatu Aceh adalah salah satu partai politik lokal di provinsi Aceh, Indonesia. Partai ini ikut dalam Pemilihan Umum Legislatif Indonesia 2009 dan pemilihan anggota parlemen daerah Provinsi Aceh[1], tetapi hanya meraih 16.602 suara, 0,77% suara di A...

 

Bengali Islamic scholar and educationist Shaykh al-IslāmHabibullah QurayshiDirector-General, Al-Jamiatul Ahlia Darul Ulum Moinul IslamIn office1899–1941Succeeded byShah Abd al-Wahhab TitleAllama, Boro Moulovi Saheb[1]PersonalBorn1865Qazipara, Charia, Hathazari, Chittagong DistrictDied1943(1943-00-00) (aged 77–78)Resting placeMaqbara-e-Habibi, HathazariReligionIslamSpouse5[2]Children10[2]ParentMatiullah Mianji Qurayshi (father)DenominationSunniJurisprudenceHan...

 

Village development committee in Bheri Zone, NepalRokayagaun रोकायागाउँVillage development committeeRokayagaunLocation in NepalCoordinates: 29°01′N 82°11′E / 29.02°N 82.18°E / 29.02; 82.18Country   NepalZoneBheri ZoneDistrictJajarkot DistrictPopulation (1991) • Total2,364Time zoneUTC+5:45 (Nepal Time) Rokayagaun is a former village development committee in Jajarkot District in the Karnali Province of Nepal. At...

NASA satellite of the Explorer program Not to be confused with Explorer II. Explorer 11Explorer-11 satelliteNamesS-15NASA S-15Mission typeGamma-ray astronomyOperatorNASAHarvard designation1961 Nu 1COSPAR ID1961-013A SATCAT no.00107WebsiteExplorer 11 at GSFCMission duration6 months and 20 days Spacecraft propertiesSpacecraftExplorer XISpacecraft typeScience ExplorerBusS-15ManufacturerGoddard Space Flight CenterLaunch mass37.2 kg (82 lb) [1] Start of missionLaunch da...

 

Katedral Katolik Yunani Melkit São PauloKatedral Bunda MariaKatedral Katolik Yunani Melkit São PauloLokasiSão PauloNegaraBrasilDenominasiGereja Katolik Roma(sui iuris: Gereja Katolik Yunani Melkit)ArsitekturStatusKatedralStatus fungsionalAktifAdministrasiKeuskupanEparki São Paulo (Yunani Melkit) Katedral Katolik Yunani Melkit São Paulo yang bernama resmi Katedral Bunda Maria (bahasa Portugis: Catedral de Nossa Senhora do Paraíso) adalah sebuah gereja katedral Katolik yang berlokasi ...

 

Belimbing Averrhoa carambola L. Klasifikasi ilmiah Kerajaan: Plantae (tanpa takson): Tracheophyta (tanpa takson): Angiospermae (tanpa takson): Eudikotil (tanpa takson): Rosid Ordo: Oxalidales Famili: Oxalidaceae Genus: Averrhoa Spesies: A. carambola Nama binomial Averrhoa carambolaL. Belimbing / Belimbing Manis adalah tumbuhan penghasil buah berbentuk khas yang berasal dari Indonesia, India, dan Sri Lanka. Saat ini, belimbing telah tersebar ke penjuru Asia Tenggara, Republik Dominika, B...

Kup kralja AleksandraSport Calcio TipoRappresentative delle sottofederazioni Paese Regno dei Serbi, Croati e Sloveni OrganizzatoreJNS FormulaEliminazione diretta StoriaFondazione1924 Soppressione1927 Numero edizioni4 Ultimo vincitoreBelgrado XI Record vittorieZagabria XI (3) Modifica dati su Wikidata · Manuale Le Kup kralja Aleksandra (it. Coppa del Re Alessandro) fu una competizione calcistica organizzata dalla JNS, la federazione calcistica del Regno dei Serbi, Croati e Sloveni.[1...

 

Sudanese physician and women's rights activist Khalida ZahirBornOmdurman OccupationPhysician  Khalida Zahir (Arabic: خالدة زاهر; 1927–2015), also spelled Khalda Zahir, was one of the first female Sudanese doctors and women's rights activist. Childhood and education Zahir was born in Omdurman. She graduated from the Kitchener School of Medicine, at what later became the University of Khartoum, in 1952, along with Z Serkisiani.[1] Medical career Khalida and Serkisia...

 

Lethrinus Lethrinus atkinsoni Klasifikasi ilmiah Domain: Eukaryota Kerajaan: Animalia Filum: Chordata Kelas: Actinopterygii Ordo: Perciformes Famili: Lethrinidae Subfamili: Lethrininae Genus: LethrinusG. Cuvier, 1829 Spesies tipe Sparus choerorynchusBloch & J. G. Schneider, 1801 Spesies Lihat teks Sinonim Schour Forsskål, 1775 (not available) Maina Gistel, 1848 Neolethrinus Castelnau, 1875 (uncertain) Lethrinella Fowler, 1904 Lethrinichthys D. S. Jordan & W. F. Thompson, 1912 Lethri...

دينامو بوخارست اللقب الكلاب الحمراء ، الأبيض والأحمر تأسس عام 14 مايو 1948 (منذ 76 سنة) الملعب ستاديونول دينامو بوخارست، رومانيا(السعة: 15,032) البلد رومانيا  الدوري دوري الدرجة الأولى الروماني الإدارة الرئيس كونستانتين انغلاتشي الموقع الرسمي www.fcdinamo.ro الطقم الرسمي الطقم الأس�...

 

Comune in Campania, ItalyTeanoComuneComune di TeanoLocation of Teano TeanoLocation of Teano in ItalyShow map of ItalyTeanoTeano (Campania)Show map of CampaniaCoordinates: 41°15′N 14°04′E / 41.250°N 14.067°E / 41.250; 14.067CountryItalyRegionCampaniaProvinceCaserta (CE)FrazioniBorgonuovo, Cappelle, Carbonara, Casafredda, Casale, Casamostra, Casi, Cipriani, Fontanelle, Furnolo, Gloriani, Magnano, Maiorisi, Pugliano, San Giulianeta, San Giuliano, San Marco, Santa ...

 

Pour les articles homonymes, voir Ferrières. Ferrières Le centre-bourg. Blason Administration Pays France Région Grand Est Département Meurthe-et-Moselle Arrondissement Nancy Intercommunalité Communauté de communes des Pays du Sel et du Vermois Maire Mandat Bernard Leheux 2020-2026 Code postal 54210 Code commune 54192 Démographie Populationmunicipale 327 hab. (2021 ) Densité 52 hab./km2 Géographie Coordonnées 48° 33′ 19″ nord, 6° 17′ 40″...

L'allophilie est le fait d'avoir une attitude positive à l'égard d'un groupe qui n'est pas le sien. Le terme est dérivé de mots grecs signifiant « aimer ou adorer l'autre »[1]. C'est un cadre pour comprendre quantitativement le leadership intergroupe. Il est conceptualisé comme un état d'esprit mesurable, avec des conséquences tangibles[2],[3]. Le terme allophilie a été inventé par le professeur Todd L. Pittinsky de Harvard, en 2006, après avoir cherché en vain dans pl...

 

Angle to the horizontal plane This article is about the grade of a topographic feature or constructed element. For other uses, see Slope (disambiguation). d = run Δh = rise l = slope length α = angle of inclination The grade (US) or gradient (UK) (also called stepth, slope, incline, mainfall, pitch or rise) of a physical feature, landform or constructed line refers to the tangent of the angle of that surface to the horizontal. It is a special case of the slope, where zero indicates horizont...

 

Pour les articles homonymes, voir IRB. World Rugby Nom(s) précédent(s) International Rugby Football Board (1886-1998)International Rugby Board (1998-2014) Sport(s) représenté(s) Rugby à XV, rugby à sept Création 1886 Président Bill Beaumont Siège Dublin Nations membres 133 membres et 14 membres associés(au 1er oct. 2024) Licenciés environ 3 500 000(en 2018)[1] Site internet www.world.rugby modifier  World Rugby, auparavant International Rugby Board (IRB) est l'organ...

ستاد البتراءمعلومات عامةلقب ستاد البتراءالاسم الكامل مدينة الحسين للشبابالمنطقة الإدارية عَمَّان البلد  الأردن[1] الاستعمالالمستضيف منتخب الأردن للسيدات النادي الأهلينادي الجزيرةالمالك منشأة حكوميةمعلومات أخرىالطاقة الاستيعابية 6,000الأرضية عُشبالموقع الجغراف�...

 

A questa voce o sezione va aggiunto il template sinottico {{Militare}} Puoi aggiungere e riempire il template secondo le istruzioni e poi rimuovere questo avviso. Se non sei in grado di riempirlo in buona parte, non fare nulla; non inserire template vuoti. Bernardo Gustavo di Baden-Durlach, O.S.B.cardinale di Santa Romana ChiesaRitratto del cardinale Baden-Durlach  Incarichi ricoperti Principe-abate di Fulda (1671-1677) Principe-abate di Siegburg (1672-1677) Principe...