1. A memory segment containing program instructions.
2. A named and segregated portion of a program’s code typically performing a specific class of operations. Code segments in this sense are often loaded into memory as memory segments. The main program segment is kept in memory, and auxiliary segments are loaded only when they are required.