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
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