Practice ยท 3 of 4
Argument Passing Probe
CHALLENGE
Difficulty: advanced+25 XP
Implement int arg_sum8(int a, int b, int c, int d, int e, int f, int g, int h) returning the sum of its eight parameters. On every real ABI, the first several travel in registers and the rest spill to the stack โ the function is identical either way, which is the ABI's whole point: source does not change, the machine contract adapts.
Press Submit to check your solution.
Back to lesson: Practice: ABI Contract Drills