Skip to content
  • Xavier Leroy's avatar
    Update the RISC-V calling conventions (#221) · 5003b8d9
    Xavier Leroy authored
    We were implementing the ABI described in the RISC-V Instruction Set
    Manual, version 2.1.  However, this ABI was superseded by the RISC-V
    ELF psABI specification.
    
    This commit changes the calling conventions to better match the ELF psABI
    specification.  This should greatly improve interoperability with code
    compiled by other RISC-V compilers.
    
    One incompatibility remains: when all 8 FP argument registers have been used, further FP arguments should be passed in integer argument registers if available, while this PR passes them on stack.
    5003b8d9