Computer software (or simply software) is a collection of programs and data held in the storage of a computer for some purpose.
Software can implement a computer program; such software performs the function of the program it implements, either by directly providing instructions to the computer hardware or by serving as input to another piece of software. On the other hand, software sometimes consists only of data purely for the use of other software.
The term "software" was first used in this sense by John W. Tukey in 1957. Software is often contrasted with hardware, which is the physical substrate on which software exists.
Any modern general purpose computer (as opposed to an embedded system) has a number of layers of software performing a variety of tasks. These are often divided into two major categories:
Once the software is loaded, the computer is able to operate. Computers operate by executing the software. This involves passing instructions from the application software, through the system software, to the hardware which ultimately receives the instruction as machine code. Each instruction causes the computer to carry out an operation -- moving data, carrying out a computation, or altering the flow of instructions.
Software is created with programming languages and related utilities, which may come in several of the above forms: single programs like script interpreterss, packages containing a compiler, linker, and other tools; and large suites (often called Integrated Development Environments) that include editors, debuggers, and other tools for multiple languages.