Article View: comp.lang.c
Article #662Re: Taming The Switch-Statement
From: bart
Date: Wed, 21 Oct 2026 19:49
Date: Wed, 21 Oct 2026 19:49
57 lines
3565 bytes
3565 bytes
On 21/10/2026 20:17, Scott Lurndal wrote: > bart <bc@freeuk.com> writes: >> On 21/10/2026 18:21, Scott Lurndal wrote: >>> bart <bc@freeuk.com> writes: >>>> On 21/10/2026 16:37, Dan Cross wrote: >>> >>>>> You can write some library in BartM or whatever language you >>>>> like, and someone might write a binding to call it from, say, >>>>> Pascal; and then a year down the road, you might change your >>>>> compiler (since I gather you don't bother with a well-defined >>>>> ABI, based on your not seeming to understand >>>> >>>> You still don't get what an ABI is. >>> >>> Please, enlighten us. Be specific. What exactly >>> does the term ABI mean to you? >> >> It's what I have to deal with in a compiler back-end if I want to >> support an FFI in a language. > > Ah, so you don't know what an ABI is. > > An Application Binary Interface (ABI) is a > low-level contract in computer science that > defines how two compiled binary program modules > interact with each other at the machine-code level. OK. And how is my statement wrong? > If you want your compiler to leverage existing libraries > and/or code written in another language, you need to follow > the platform ABI. It is that simple. OK. And what have I said that contradicts that? I said it is something taken care of in the back end of my compiler; and it is a solved problem. It sends very much like both of you are confused about the difference between API and ABI! > Whether you like it or not, is completely irrelevent. Irrelevant to ... what? You're making about as much sense as the other chap. I was describing the problems of interfacing to APIs (with a 'P') and DC spouted some stuff about ABIs, which was not relevant to those problems. So, are you agreeing with me here that API issues and ABI issues are separate matters? > The stack pointer alignment requirement should be obvious. Not really: the ABI has to explicitly state it. In any case that is not relevant to the issues I was describing in working with APIs.
Technical Details
Message-ID:
<11bb4vn$8hau$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<119qf6l$2rmg3$1@dont-email.me> <11b933e$3h3d0$1@dont-email.me> <11ba78m$3peq3$3@dont-email.me> <11baiuc$11ac$1@dont-email.me> <11bam77$6at$1@reader2.panix.com> <11baot1$3j98$1@dont-email.me> <aw6CS.179415$PnNb.56673@fx12.iad> <11baur1$63id$1@dont-email.me> <Pc8CS.30541$sfD.17299@fx03.iad>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: bart <bc@freeuk.com> Newsgroups: comp.lang.c Subject: Re: Taming The Switch-Statement Date: Wed, 21 Oct 2026 20:49:11 +0100 Organization: A noiseless patient Spider Lines: 57 Message-ID: <11bb4vn$8hau$1@dont-email.me> References: <119qf6l$2rmg3$1@dont-email.me> <11b933e$3h3d0$1@dont-email.me> <11ba78m$3peq3$3@dont-email.me> <11baiuc$11ac$1@dont-email.me> <11bam77$6at$1@reader2.panix.com> <11baot1$3j98$1@dont-email.me> <aw6CS.179415$PnNb.56673@fx12.iad> <11baur1$63id$1@dont-email.me> <Pc8CS.30541$sfD.17299@fx03.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 21 Oct 2026 19:49:12 +0000 (UTC) Injection-Info: dont-email.me; logging-data="279902"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+33KmZralife+5x+ZBffKq"; posting-host="c65e78a22dc81d6f5c20317bcf66a407" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:nUg9KvB+gA9g3sMqoAbsXsvMTBc= sha256:24XYrXhAoM81vOwjC2aTyteg/u2ZGHKnq1BGWIzCgQY= sha1:UlnoINCLufBFcfGgaI6NCSg0Qq8= sha256:/LNXw31leqKddQnPqZuQOiseDNNfbDjFrXqxLheoDJU= Content-Language: en-GB In-Reply-To: <Pc8CS.30541$sfD.17299@fx03.iad>