riscv-non-isa / riscv-elf-psabi-doc

A RISC-V ELF psABI Document
https://jira.riscv.org/browse/RVG-4
Creative Commons Attribution 4.0 International
691 stars 163 forks source link

ABI for _BitInt #419

Open kito-cheng opened 9 months ago

kito-cheng commented 9 months ago

_BitInt (N) is the type defined in C23, allow user to define an arbitrary-sized integer type, where N is a postive integer larger than zero.

This proposal defined the size and alignment of _BitInt, and define the unused bits as unspecified which is same as x86-64 and AArch64.

For the calling convention part, we keep unused bits as unspecified.

Ref:

Fix #300

kito-cheng commented 9 months ago

cc @pinskia @jsm28 @workingjubilee @palmer-dabbelt @JeffreyALaw @preames @topperc

kito-cheng commented 7 months ago

Plan to putting more table for the code gen among 3 different options, I was too optimistic that I could have time to doing that...:( anyway will put that once I have one.