>  I'd like a smidge of documentation on the calling convention.

As with the other Plan 9 compilers, the '-S' option for ic/jc will
show you the function call and entry sequences, in a syntax which
is meant to be acceptable by ia/ja. The '-a' option for il/jl will
show you the actual machine instructions generated.

Geoff Collyer's 9k riscv64 port has a wrapper for calling the SBI
from C, in /sys/src/9k/rv/sbiecall.s


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T48f47cc224c8e8f0-M6696d8004a8d22936a57c6ba
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to