Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. romcc is a C
compiler which generates code which uses only processor registers to
store variables, instead of RAM. It was designed to aid with RAM
initialization inside the open-source BIOS replacement project coreboot.
Before the RAM has been initialized there is no RAM available for use
and therefore romcc code uses only the CPU registers. A standard
compiler like GCC would not be suitable for writing code like this as it
requires a stack, which, in the x86 and most other architectures, would
have to be contained in RAM.All functions compiled by romcc will be
inlined, which leads to all code being roughly 3x larger than hand-coded
assembly.