~mpu/qbe

2 2

Re: Various questions

Details
Message ID
<B3896E4E-94EA-41E2-8D76-C2FA65B77CA7@forwarding.cc>
DKIM signature
missing
Download raw message
I’ve been thinking about this a bit. On Windows you have
at least two ABIs cdel and stdcall. Which would mean, I 
assume, additional syntax in the IR to distinguish which
one to use for a given call. If adding that to QBE is 
agreeable then presumably it would be possible to add 
internal ABI’s for languages that use QBE.

Is that a crazy idea? (I’m still in the process of fully
understanding ABIs and what they mean in terms of language
implementation and I’m just as the start of understanding
QBE’s architecture so could be off the mark here).


-- David

Re: Various questions

Details
Message ID
<CAFvxmQa3Tze6wk8Wm0j8BHGiEhhTihceLOr+7R_xrzw7YW5fog@mail.gmail.com>
In-Reply-To
<B3896E4E-94EA-41E2-8D76-C2FA65B77CA7@forwarding.cc> (view parent)
DKIM signature
missing
Download raw message
Hello,

For my part I will only support the win64 ABI, because I will use only
the win32 API and nothing else. I can use the same ABI for my
language.


PS: I haven't made any progress, because I got a daughter recently, so
I have 0 time in front of my PC to code.

Le sam. 6 mai 2023 à 19:17, dangermouseb <dangermouseb@forwarding.cc> a écrit :
>
> I’ve been thinking about this a bit. On Windows you have
> at least two ABIs cdel and stdcall. Which would mean, I
> assume, additional syntax in the IR to distinguish which
> one to use for a given call. If adding that to QBE is
> agreeable then presumably it would be possible to add
> internal ABI’s for languages that use QBE.
>
> Is that a crazy idea? (I’m still in the process of fully
> understanding ABIs and what they mean in terms of language
> implementation and I’m just as the start of understanding
> QBE’s architecture so could be off the mark here).
>
>
> -- David



-- 
Xavier

Re: Various questions

Details
Message ID
<d82fb453-c315-481a-9163-b8ec5fdcd982@app.fastmail.com>
In-Reply-To
<B3896E4E-94EA-41E2-8D76-C2FA65B77CA7@forwarding.cc> (view parent)
DKIM signature
missing
Download raw message
If there is enough motivation for that, we could
envision to have ABI modifiers sprinkled in the
IL.
Reply to thread Export thread (mbox)