RISC-V scall Pseudo-Instruction Details
Assembler pseudo-instructionOlder system-call pseudo-instruction name, expanding to ecall. It preserves compatibility with earlier assembly spelling; modern code typically writes ECALL directly.
What This Pseudo Instruction Is Saving You From Writing
Earlier RISC-V assembly and teaching material used the scall name; keeping the alias helps old code, while the modern official name is ECALL.
Official Semantics Checklist
How To Read The Expansion
What You May See In objdump / Disassembly
Official References And Reading Order
This page treats pseudo-instructions as assembler-level aliases or macros: first read what real instructions they expand to, then use the official ISA manual for the behavior of those real instructions. ABI, relocation, and linker-relaxation details follow the psABI document.
When To Think Of It First
Pitfalls / Common Confusions
FAQ
Is scall a real RISC-V instruction?
scall is an assembler pseudo-instruction or alias, not a separate hardware opcode. The “Typical Real Expansion” section lists the official expansion, and behavior is defined by the expanded ISA instructions.
What is the main trap when using scall?
This is an older alias; prefer ecall in new code