[llvm-dev] Fwd: [LLVM Conduct] Mips O64

39 views
Skip to first unread message

Ханов Артур via llvm-dev

unread,
Feb 3, 2021, 12:11:02 PM2/3/21
to llvm...@lists.llvm.org

Hello.
Is it possible to compile object files for Mips processors with O64 calling convention ?

Regards, Khanov Artur  

---------- Forwarded message ---------
From: Chris Lattner <clat...@llvm.org>
Date: Tue, 2 Feb 2021 at 21:46
Subject: Re: [LLVM Conduct] Mips O64
To: Ханов Артур <awe...@gmail.com>
Cc: <con...@llvm.org>


I’d recommend asking this on the llvm-dev mailing list, thanks!

-Chris

> On Feb 2, 2021, at 4:39 AM, Ханов Артур <awe...@gmail.com> wrote:
>
> Hello.
> Is it possible to compile object files for Mips processors with O64 calling convention ?
>
> Regards, Khanov Artur

David Chisnall via llvm-dev

unread,
Feb 3, 2021, 3:53:07 PM2/3/21
to Ханов Артур, llvm...@lists.llvm.org
On 2 Feb 2021, at 19:59, Ханов Артур via llvm-dev <llvm...@lists.llvm.org> wrote:
>
> Is it possible to compile object files for Mips processors with O64 calling convention ?

I don’t believe so. As I recall, o64 is not a ‘real’ ABI, it is o32 extended for 64-bit machines. The official MIPS ABIs are o32 (known at ‘the MIPS ABI’ prior to MIPS III), n64 (the LP64 MIPS III and later ABI) and n32 (the ILP32 MIPS III and later ABI). If you want to add o64 support to the MIPS back end, it’s probably not tremendously difficult. There were a few places where the ABI and the register size were conflated, but I think they’re mostly fixed: you’d just need to look at the places where the back end does something o32-specific, do the same thing but with the 64-bit register variants.

David

_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Reply all
Reply to author
Forward
0 new messages