Share to: share facebook share twitter share wa share telegram print page

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". binutils@sources.redhat.com (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:

Kereta api Batu Bara Rangkaian Panjang (KA Babaranjang)KA Babaranjang dihela CC205IkhtisarJenisKereta api BarangSistemCost Insurance Freight (CIF)StatusBeroperasiLokasiDivisi Regional III PalembangDivisi Regional IV TanjungkarangTerminusTarahanTanjungenim BaruStasiun57Layanan1OperasiDibuka1 Oktober 1986; 37 tahun lalu (1986-10-01)[1]PemilikPT Kereta Api Indonesia (Persero)PT Bukit Asam TbkOperatorKAI LogistikDepoLokomotif: Tanjungkarang (TNK) Tarahan (THN)Gerbong: Muaragula (MRL)...

Renault Vel SatisRenault Vel Satis (Pra-pembaharuan)InformasiProdusenRenaultMasa produksi2001–2009 (kemudi kiri, diperkiraan 62,201 unit)2001–2005 (kemudi kanan, diperkirakan 1,293 unit)PerakitanPrancis: Sandouville (Sandouville Renault Factory)PerancangPatrick Le QuémentBodi & rangkaKelasmobil eksekutif (E)Bentuk kerangka5-pintu hatchbackTata letakmesin depan, penggerak roda depanMobil terkaitRenault Laguna II Renault Espace IVPenyalur dayaMesinBensin:2.0 L F4Rt turbo I43.5 L V...

This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (September 2016) This article includes a list of general references, but it lacks sufficient corresponding inline citations. Please help to improve this article by introducing more precise citations. (May 2016) (Learn how and when to remove this template message) Songs of the Harlem River: Forgotten One Acts of the Harlem Renaissance is...

Axis Communications AB 55°43′06″ пн. ш. 13°13′13″ сх. д. / 55.718500000027773922° пн. ш. 13.220300000028° сх. д. / 55.718500000027773922; 13.220300000028Координати: 55°43′06″ пн. ш. 13°13′13″ сх. д. / 55.718500000027773922° пн. ш. 13.220300000028° сх. д. / 55.718500000027773922; 13.220300000028Тип Публ...

Tora! Tora! Tora! (Filmposter op en.wikipedia.org) Regie Richard FleischerKinji FukasakuToshio Masuda Scenario Ladislas FaragoGordon W. PrangeLarry ForresterRyuzo KikushimaHideo OguniAkira Kurosawa Muziek Jerry Goldsmith Distributie Twentieth Century Fox Première 23 september 1970 Genre Oorlogsfilm Speelduur ca 138 minuten (dvd) Taal Engels/Japans Land Verenigde Staten / Japan (en) IMDb-profiel MovieMeter-profiel Portaal    Film Tora! Tora! Tora! (Japans: トラ・トラ・トラ) ...

اضغط هنا للاطلاع على كيفية قراءة التصنيف أكمية تسمانية   المرتبة التصنيفية نوع  التصنيف العلمي النطاق: حقيقيات النوى المملكة: نباتات العويلم: النباتات الخضراء غير مصنف: النباتات الجنينية غير مصنف: النباتات الوعائية غير مصنف: حقيقيات الأوراق غير مصنف: البذريات غير مصن...

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Sugar Loaf Express – news · newspapers · books · scholar · JSTOR (June 2019) (Learn how and when to remove this template message) 1977 studio album by Lee RitenourSugar Loaf ExpressStudio album by Lee RitenourReleased1977StudioKendun Recorders (Burbank, California)GenreJ...

Peta infrastruktur dan tata guna lahan di Komune Combs-la-Ville.  = Kawasan perkotaan  = Lahan subur  = Padang rumput  = Lahan pertanaman campuran  = Hutan  = Vegetasi perdu  = Lahan basah  = Anak sungaiCombs-la-VilleNegaraPrancisArondisemenMelunKantonCombs-la-VilleAntarkomuneSénartPemerintahan • Wali kota (2008-2014) Guy Geoffroy • Populasi122.114Kode INSEE/pos77122 / 2 Population sans doubles comptes: penghitungan tunggal...

Fatih Ate AndhikaBerkas:needs-photoLahirFatih Andhika5 Juli 1992 (umur 31)Pringsewu, Lampung, IndonesiaNama lainAtek, AtePendidikanUniversitas Bandar LampungPekerjaanPelawak tunggal MC - AktorTahun aktif2013 - sekarangOrganisasiStand Up Indo Lampung - Stand Up Indo Fatih Andhika yang akrab disapa Fatih, Atek, atau Ate (lahir 5 Juli 1992) adalah pelawak tunggal berkebangsaan Indonesia. Ate merupakan pelawak tunggal atau komika jebolan komunitas Stand Up Indo Lampung, salah satu ...

Chinese people in East TimorA mix wedding of East Timorese and Chinese Hakka people in East Timor, where the four flower girls and the mother of the bride on the far right are of Chinese Hakka descent.Total population4,000[1]—20,000 (Historically)Regions with significant populations East Timor AustraliaLanguagesPortuguese, Indonesian, Chinese (Hakka, Cantonese, Mandarin), Tetum, MacaneseReligionConfucianism, Buddhism, Taoism, CatholicismRelated ethnic groupsChinese Indones...

Wojska pancerne Znak taktyczny Wojska pancerne – jeden z głównych rodzajów wojsk lądowych, którego podstawę uzbrojenia stanowią czołgi i inne ciężkie wozy bojowe. Charakterystyka Wojska pancerne charakteryzują się dużą siłą ognia, dużą manewrowością i odpornością na ogień. Cechy te czynią je doskonałym rodzajem sił do wtargnięcia w ugrupowanie przeciwnika, rozwijania natarcia, głębokich uderzeń w strefę tyłową przeciwnika i prowadzenia pościgu. Mogą równi...

2013 thriller novel by Erec Stebbins Extraordinary Retribution Paperback and hardback coversAuthorErec Stebbins[1]CountryUnited StatesLanguageEnglishSeriesIntel 1GenreThriller, Political thriller, Conspiracy fiction, Spy fictionPublisherTwice Pi PressPublication date2013Media typePrint (Hardcover, Paperback), ebook(Amazon Kindle, Barnes & Noble Nook)Pages424 pp (First ed. hardcover)ISBN978-0-98900048-2Followed byThe Anonymous Signal  Extraordinary Retribution is a 2...

Video game franchise This article is about the media franchise. For the first game in the series, see Metal Gear (video game). For other uses, see Metal Gear (disambiguation). Metal Gear Solid redirects here. For the 1998 PlayStation game, see Metal Gear Solid (1998 video game). For the 2000 Game Boy game, see Metal Gear Solid (2000 video game). Video game seriesMetal GearThree logos from games in the seriesGenre(s) Action-adventure Hack and slash Stealth Developer(s)Konami (1987–2005)Kojim...

State of War AuthorJames RisenCountryUnited StatesLanguageEnglishSubjectCentral Intelligence AgencyPublisherFree PressPublication dateJanuary 3, 2006Media typeHardcoverPages256ISBN0-7432-7066-5 State of War: The Secret History of the CIA and the Bush Administration is documentary review written by Pulitzer Prize-winning American journalist for The New York Times James Risen.[1][2] The book was released on January 3, 2006. Risen writes in State of War that, Several of the ...

«Зона покриття» Обкладинка українського виданняАвтор Стівен КінгНазва мовою оригіналу CellМова українськаЖанр жахиВидавництво Книжковий клуб Клуб сімейного дозвілляВидано 2006Видано українською 2006Перекладач(і) з англ. Олена ЛюбенкоСторінок 464ISBN 966-343-442-2 «Зона покриття» ...

Municipality in Troms og Finnmark, Norway Municipality in Troms og Finnmark, NorwaySør-Varanger Municipality Sør-Varanger kommuneMátta-Várjjaga gieldaEtelä-Varengin komuuniMunicipalitySørvaranger herred  (historic name) FlagCoat of armsTroms og Finnmark within NorwaySør-Varanger within Troms og FinnmarkCoordinates: 69°43′43″N 30°02′30″E / 69.72861°N 30.04167°E / 69.72861; 30.04167CountryNorwayCountyTroms og FinnmarkDistrictØst-FinnmarkEsta...

German public transit buses Motor vehicle MAN Lion's CityLion's City Hybrid in KVB service in CologneOverviewManufacturerMAN Truck & BusProduction1996–presentAssemblyGermany: Augsburg/Nobitz (Göppel Bus), Plauen/Pilsting (Neoplan/Viseon Bus), SalzgitterPoland: Starachowice/Sady (MAN Bus)South Africa: OlifantsfonteinTurkey: Ankara (MANAŞ)Malaysia: Johor (Gemilang Coachworks)Philippines: Carmona (Almazora)Body and chassisClassIntegral busBody styleMidibusSingle-decker busArticulate...

Spanish motorcycle racer (born 2004) In this Spanish name, the first or paternal surname is Guevara and the second or maternal family name is Bonnin. Izan GuevaraGuevara in 2019NationalitySpanishBorn (2004-06-28) 28 June 2004 (age 19)Palma de Mallorca, SpainCurrent teamGasGas Aspar TeamBike number28 Motorcycle racing career statistics Moto2 World ChampionshipActive years2023 ManufacturersKalex Starts Wins Podiums Poles F. laps Points 17 0 0 0 0 20 Moto3 World Championsh...

Для термина «Троя» см. также другие значения. Для термина «Илион» см. также другие значения. Древний городТроягреч. Τροία, Τροίη; Ἴλιονхетт. Wilusa (URUWi-lu-ša ) руины Трои; рисунок 1835 года 39°57′26″ с. ш. 26°14′18″ в. д.HGЯO Страна  Турция Основан ок. 3000 г. до н. э. Разрушен ок....

Number which when multiplied by x equals 1 Reciprocal (mathematics) redirects here. Not to be confused with reciprocation (geometry). The reciprocal function: y = 1/x. For every x except 0, y represents its multiplicative inverse. The graph forms a rectangular hyperbola. In mathematics, a multiplicative inverse or reciprocal for a number x, denoted by 1/x or x−1, is a number which when multiplied by x yields the multiplicative identity, 1. The multiplicative inverse of a fraction a/b is...

Kembali kehalaman sebelumnya