In [[computer programming]], '''code space''' is the [[memory]] segment in the main memory allocated to a process to store the code in execution.
* Code space, where [[machine code]] is stored in memory address space
In [[multi-threading]] environment, [[threads]] share code space along with data space, which reduces the overhead of [[context switching]] considerably as compared to [[Process (computing)|process]] switching.
* Code space or codespace, the range of [[code point]]s for a character encoding