One program, three chips: x86, ARM, RISC-V and the ABI
Stack Frame Layout · Open board
The memory a function uses while it runs, including the place where its arguments wait. This lesson is about who agrees on what goes where.
Before you start.The CPU (fetch-decode-execute, the ISA, assembly) showed the same three-line C function compiled for ARM and x86, giving two instructions on one and five on the other, and named the instruction set architecture (ISA), the fixed list of instructions a chip understands. Doing many things at once inside one core: out-of-order, SIMD and speculation stayed inside one core and showed how it starts work early. The names a program needs to find showed that a compiled library makes promises about its names, and that breaking one stops a program. This lesson asks what else must match when two pieces of compiled code meet.
Lesson 19 of 41 in How Computers Work
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.