Nepedia
Back to Discover
Independent Reader
💻

Calling convention

technology Maturity 11-13 Next article →

Computers use special rules to share work. These rules are called calling conventions. When one part of a program asks another part to do a job, they must follow these rules. This helps the program run in a reliable way.

These rules act like a contract. They decide how to pass information back and forth. This information is called parameters. The rules also decide how to send back an answer. We call this a return value.

There are many ways to move this data. Some rules use small storage spots called registers. Other rules use a list called a stack. The rules also decide the order of the items. They might send them from left to right or right to left.

Different computer systems use different rules. For example, the x86 system uses a stack for many tasks. The ARM system uses many registers to pass data. Some rules even decide how to clean up after a job is done. This makes sure the computer is ready for the next task.

171 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.