Re: Introduction + interest in a riscv64 port of GNU Mach/Hurd

Hakan Candar <[email protected]>
Newsgroups gmane.os.hurd.bugs
Message-ID <13MyY-vsPSzbcJ4yWU88P4vWtiVaKmYPAzaFGdsc_V4aQVOsbDfQHkUSZaovxLP-i0Po1awGHz1X2R_VrVvNw3bRic01Lis4l6kBub6nHNA=@candar.tr>
Sergey,

> Well, we generally try to stick close to the ABI that Linux uses
> (calling convention-wise), because why wouldn't we. But it's not
> automatic, the *-gnu target has to be defined in GCC & binutils, even
> if it's defined similarly to the *-linux-gnu and the BSD targets. See
> gcc:gcc/config/aarch64/aarch64-gnu.h for example. So we need to submit
> our target upstream either way. (And there's no default Mach ABI, but
> there are targets for GNU/Hurd systems on various architectures.)

Since GCC 16, there is actually a riscv64-gnu target upstream [1]. LLVM 
also introduced a riscv64-gnu target not too later [2].

[1]: https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=869f2ab30ad53033ad6ac82569d74ce3a99fe510
[2]: https://github.com/llvm/llvm-project/pull/157212

Hakan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.