Project

General

Profile

Actions

Feature #49

open

Passing aggregates to procedures by values

Feature #49: Passing aggregates to procedures by values

Added by Eugen Wissner 24 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Code generation
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Risc-V calling conventions are described in "RISC-V ABIs Specification", in the chapter "RISC-V Calling conventions".

For the current state only integer registers are relevant. Objects that are 2 words wide are passed in 2 registers. Larger types are passed by reference. Note that the referenced object can be modified by the callee, so it is not enough to pass a reference to a local variable to the callee, the local variable should be copied first, so that the callee cannot modify caller's local variables.

No data to display

Actions

Also available in: PDF Atom