Search topics and sections

Software is the programs and data that tell a computer what to do. The physical machine, with its chips, wires, and disks, is the hardware. Software is the set of instructions that the hardware carries out.

Software ranges from the operating system that manages a computer's resources to applications such as word processors and spreadsheets. People write it in programming languages, and other programs translate it into instructions the processor can run. As a field within computer science, software covers how programs are built, tested, maintained, owned, and sold.

What software is

Software engineering standards define software as "computer programs, procedures and possibly associated documentation and data pertaining to the operation of a computer system."[1] So software includes the programs themselves and also the data, rules, and manuals that go with them.

A computer program is "a set of statements or instructions to be used directly or indirectly in a computer to bring about a certain result," in the words of the US Copyright Office.[2]

Where software lives

Software is usually kept on long-term storage, such as a hard drive. When a program is used, the computer reads it from storage and places its instructions in random-access memory (RAM) for the time being. Storing and then carrying out the instructions is called running, or executing, the program.[3]

Some software is stored permanently in read-only memory (ROM). Programs stored this way are called firmware, or "hard software."[3]

How software runs

A computer's central processing unit (CPU) carries out machine code. These are instructions coded in a form that this kind of machine understands, and early writers called these coding rules the machine's language.[4][5]

Programmers can instead write source code in a high-level language such as C++. Another program then turns that source code into something the machine can run.[5] There are two main ways to do this.

Compilers

A compiler translates source code into machine-language instructions that the CPU can understand.[5] The result is typically an executable file, a file of machine code ready to run.[6]

  • Some compilers first produce assembly language, which a program called an assembler then turns into machine code.
  • Other compilers produce machine code directly.[5]

Interpreters

An interpreter runs source files directly, without first creating a separate executable file. Python works this way.[6]

In an interpreted language, a program can usually be written, tested, and fixed faster than in a compiled language. The program generally runs more slowly, though. Python's own documentation adds that the line between compiled and interpreted "can be blurry."[6]

Compiled and interpreted programs Compiled Interpreted Source code (e.g. C++) Compiler Machine code (executable file) CPU runs it Assembly language Assembler some compilers Source code (e.g. Python) Interpreter (a running program) CPU Results no separate executable file is made
A compiler turns source code into a machine code executable file that the CPU runs later. Some compilers first produce assembly language, which an assembler converts to machine code. An interpreter is a running program on the CPU that executes source code directly and produces results, with no separate executable file.

Kinds of software

Britannica names two main types of software, system software and application software, and a third type, network software, which handles communication between computers.[3] The table below adds a fourth row, programming tools, which is not one of Britannica's three types.

Type What it does Examples
System software Controls how the computer works inside, mainly through the operating system, and controls devices such as monitors, printers, and storage Operating systems
Application software Carries out commands from the user and processes data for the user Word processors, spreadsheets, database programs, payroll programs
Network software Coordinates communication between computers linked in a network Software that runs computer networks
Programming tools Translate source code or run it directly Compilers, interpreters, assemblers

The first three rows follow Britannica.[3] The last row lists the tools described in the section above.[5][6]

The operating system

The operating system manages a computer's resources and shares them out among other programs. These resources include the CPU, memory, file storage, input and output devices, and network connections. It schedules their use so programs do not get in each other's way.[7]

Unlike most programs, which finish a task and stop, an operating system keeps running until the computer is turned off.[7]

Layered software stackApplication softwareWord processorSpreadsheetPayroll programShares out resourcesOperating systemManages CPU, memory, files, devices, networkFirmware (stored in read-only memory)HardwareCPU, memory, storage, input/output devicesUserCommandsSystem software
A simplified software stack. Hardware sits at the base, firmware in read-only memory sits above it, the operating system shares out resources to application programs, and the user gives commands to the applications.

Building software

The study of how to build software well is software engineering. The Guide to the Software Engineering Body of Knowledge (SWEBOK), version 4, divides the field into 18 knowledge areas.[8] Its core activities include these:

  • Requirements: finding out, analyzing, writing down, checking, and managing what the software must do.
  • Architecture: the basic structures of the software's parts and the relations among them.
  • Design: turning the requirements into a description of the software system.
  • Construction: turning the design into code that runs.
  • Testing: checking that the software is correct and meets its requirements.
  • Operations: running software in service, joining development, maintenance, and operations work.
  • Maintenance: supporting and changing software after it is delivered.

Teams organize these activities through a software development process.

Bugs and testing

Flaws in software are commonly called bugs.[9] Software testing runs a program on a finite set of carefully chosen test cases and checks that it behaves as expected. Those cases are drawn from a set of possible runs that may be infinite, so testing samples the program's behavior rather than covering all of it.[10]

Poor testing is costly. A 2002 study for the US National Institute of Standards and Technology (NIST) estimated that an inadequate testing infrastructure cost the US economy $59.5 billion a year. It estimated that feasible improvements could save $22.2 billion of that.[11]

Maintenance

Software maintenance is the work of changing software after delivery. The standard ISO/IEC/IEEE 14764 sorts this work into types.[12]

  • Corrective: fixes problems found after delivery.
  • Preventive: fixes hidden faults before they cause failures in the live system.
  • Adaptive: adjusts the software to a changed or changing environment.
  • Perfective: adds enhancements for users or improves performance, ease of maintenance, or other qualities.
  • Additive: an enhancement type that some organizations use, kept separate from perfective.

The 2022 edition calls corrective and adaptive work reactive, and preventive, perfective, and additive work proactive. It counts adaptive, perfective, and additive changes as enhancements, though some organizations do not count adaptive work as one.[12] Corrective and preventive work are treated as corrections.[13]

Types of software maintenance in ISO/IEC/IEEE 14764 Reactive Proactive Corrective fix problems found after delivery Preventive fix hidden faults before they cause failures Adaptive fit a changed environment Perfective improve performance or usability Additive used by some organizations Corrections Enhancements
The five types of software maintenance in ISO/IEC/IEEE 14764, grouped by whether the work reacts to a problem or anticipates one, and by whether it corrects the software or enhances it.

Ownership and licensing

In the United States, copyright protects the creative expression in a program, such as its written code. It does not protect a program's functional parts, such as its algorithms (step-by-step methods), formatting, functions, logic, or system design.[2]

Licenses

A software license sets the terms under which people may run, copy, share, and change a program. Licenses fall into a few broad groups.

  • Proprietary software: the Free Software Foundation (FSF) calls a program "nonfree" or "proprietary" when its users do not control it and the developer does.[14]
  • Free software: software that gives users the four freedoms listed below. Here "free" refers to freedom, not price, "as in 'free speech,' not as in 'free beer.'"[14]
  • Open-source software: a label created in 1998 for a way of developing software by sharing source code. Its founders chose it to set the approach apart from the more philosophical and political term "free software."[15]

The four freedoms

The Free Software Definition says a program is free software if its users have four freedoms.[14]

  • Freedom 0: run the program as you wish, for any purpose.
  • Freedom 1: study how the program works and change it. This needs access to the source code.
  • Freedom 2: share copies with others.
  • Freedom 3: share copies of your changed versions. This also needs the source code.

The numbering starts at 0 for historical reasons. Around 1990 there were three freedoms, numbered 1 to 3, and the freedom to run the program was later added in front as freedom 0.[14]

Free software can be commercial. The definition requires that a free program allow commercial use, development, and distribution, and people may sell copies.[14] Some free licenses use copyleft, a rule that anyone who passes the program on may not add restrictions that take these freedoms away from others.[14]

The FSF says open source rests on different values from free software but that "nearly all open source programs are in fact free."[14]

Software as a service

With software as a service (SaaS), users run a provider's applications on the provider's cloud systems. They reach the applications through a web browser or a program interface, as with web-based email. The user does not manage the servers, operating systems, or storage underneath.[16]

History

Timeline of key events in software history 1843 Lovelace's Note G 1948 Manchester Baby 1958 Software in print 1969 IBM unbundling 1998 Open source, OSI 1936 Turing machine 1957 FORTRAN compiler 1968 NATO conference 1983 GNU Project
Key events in software history, from Ada Lovelace's Note G in 1843 to the coining of the term open source in 1998. The axis is to scale from 1936 onward, and the break marks a gap between 1843 and 1936 that is not to scale.

Early ideas

In 1843 Ada Lovelace published a translation of an article about Charles Babbage's Analytical Engine, a machine that was never built, with long notes of her own.[17][18] Her last note, Note G, worked out how the engine could calculate the Bernoulli numbers.[18]

The historian Thomas Misa argues that Lovelace wrote a step-by-step method (an algorithm) for this. He notes, though, that calling her the first computer programmer raises problems of definition.[19]

In 1936 Alan Turing described a universal machine. A Turing machine is an abstract machine that reads and writes symbols on a tape by following fixed rules. Turing's universal machine could copy the behavior of any other such machine by reading that machine's program as symbols on its tape, handling program and data in the same way.[20]

The first stored programs

The earliest electronic computers were set up by flipping switches. Later machines were driven by coded instructions held in memory.[4] In such a stored-program computer, running a different program only means changing part of the memory, not rebuilding the circuits.[21]

On 21 June 1948, the Manchester Baby became the first computer to run a program stored in read-write electronic memory.[22] The program, written by Tom Kilburn, found the highest factor of a number. Within days it was run on 2182^{18} and found the right answer in 52 minutes.[21]

Languages and the word "software"

Compilers came next. Grace Hopper coined the term "compiler" and designed one of the first in the early 1950s.[5] The FORTRAN language was defined, and a compiler delivered for the IBM 704, in 1957.[23]

The first published use of "software" for computers is often credited to the statistician John Tukey, in a 1958 article.[24] He wrote that "the 'software' comprising the carefully planned interpretive routines, compilers, and other aspects of automative programming are at least as important to the modern electronic calculator as its 'hardware' of tubes, transistors, wires, tapes and the like." Richard R. Carhart had used the word in 1956 conference proceedings, but to mean people, not programs.[24]

Software engineering and the software industry

By the late 1960s, large software projects were causing wide concern. At the first of the NATO Software Engineering Conferences, held in Garmisch, Germany, from 7 to 11 October 1968, some participants spoke of a "software crisis."[25] Brian Randell, an editor of the report, recalled that the term "software engineering" was accepted there as expressing "a need rather than a reality."[25]

Software also became a product. IBM had given away much of its software with its machines, which rivals objected to.[26] The US Justice Department sued IBM in January 1969.[23]

On 23 June 1969 IBM announced separate prices for services and for seventeen system and application software products. Many independent software companies started up in response.[23] The Computer History Museum describes the change as software moving "from a giveaway to a competitive commercial product."[26]

Free and open source

Richard Stallman announced the GNU Project on 27 September 1983, a plan to write a complete Unix-compatible system and share it freely. Work began in January 1984.[27] In 1985 Stallman started the Free Software Foundation.[28]

The term "open source" was created on 3 February 1998 at a meeting in Palo Alto, California, shortly after Netscape announced it would release its browser's source code. Christine Peterson suggested the term.[15] Eric S. Raymond and Bruce Perens founded the Open Source Initiative in late February 1998.[15]

Research software

The FAIR for Research Software Principles define research software as including "source code files, algorithms, scripts, computational workflows and executables that were created during the research process or for a research purpose."[29]

Related pages cover research software engineering, mathematical software, and numerical software.

References

  1. NPR 7150.2C, Appendix A: Definitions, NASA, citing IEEE Std 828-2012.
  2. Copyright Registration of Computer Programs (Circular 61), US Copyright Office.
  3. Software, Encyclopaedia Britannica.
  4. Translator (computing), Encyclopaedia Britannica.
  5. Compiler, Encyclopaedia Britannica.
  6. Glossary: interpreted, Python Software Foundation.
  7. Operating system, Encyclopaedia Britannica.
  8. An Overview of the SWEBOK Guide, SEBoK.
  9. Updated NIST Software Uses Combination Testing to Catch Bugs Fast and Easy, NIST, 2010.
  10. SFIA v9 and SWEBOK v4, SFIA Foundation.
  11. The Economic Impacts of Inadequate Infrastructure for Software Testing (Planning Report 02-3), NIST, 2002.
  12. ISO/IEC/IEEE 14764:2022 Software engineering: Software life cycle processes: Maintenance (sample), ISO/IEC/IEEE, 2022.
  13. Software maintenance, IEEE Technology Navigator.
  14. What is Free Software?, GNU Project, Free Software Foundation.
  15. History of the Open Source Initiative, Open Source Initiative.
  16. The NIST Definition of Cloud Computing (SP 800-145), NIST, 2011.
  17. Ada Lovelace, Computer History Museum.
  18. Ada Lovelace and the Analytical Engine, Bodleian Libraries, 2018.
  19. Charles Babbage, Ada Lovelace, and the Bernoulli Numbers, Thomas J. Misa, arXiv, 2023.
  20. Turing Machines, Stanford Encyclopedia of Philosophy.
  21. The Manchester Small Scale Experimental Machine: "The Baby", University of Manchester.
  22. Milestones: Manchester University "Baby" Computer and its Derivatives, 1948-1951, IEEE Engineering and Technology History Wiki.
  23. Software Industry, IEEE Engineering and Technology History Wiki.
  24. Tukey Applies the Term "Software" within the Context of Computing, HistoryofInformation.com.
  25. Fifty Years of Software Engineering, or The View from Garmisch, Brian Randell, arXiv, 2018.
  26. Software Becomes a Product, Computer History Museum.
  27. Initial Announcement, GNU Project, 1983.
  28. What is free software and why is it so important for society?, Free Software Foundation.
  29. About ReSA, Research Software Alliance.

Figure

Subtopics

ACM Software System AwardACM Symposium on User Interface Software and TechnologyantiSMASHAppImageAPT (programming language)ArchicadArtifact repositoryBill GatesBob FrankstonBrian BehlendorfBruce PerensBusiness softwareBusiness transaction managementCaliper CorporationCanonical (company)Carta (software company)Charles SimonyiChris WanstrathCompilerComputer programConfiguration fileConnect (computer system)Content management systemCross-platform softwareD. Richard HippDassault SystèmesDavid CournapeauDebouncingDecompilerDeveloper Certificate of OriginDisassemblerDocusignDonationwareDynamic software updatingEclipse FoundationEmulatorEnergid TechnologiesEnterpriseDBEpic GamesEric S. RaymondEsriEvent (computing)Fabrice BellardFactSageFlexcomFork (software development)FOSDEMFree Software FoundationFree Software Foundation EuropeFree software movementFreewareGavin AndresenGoogle Summer of CodeGreg Kroah-HartmanHarding testHSC ChemistryIBM unbundlingJ. H. Wilkinson Prize for Numerical SoftwareJamie ZawinskiJochen LiedtkeJonathan SachsKayhan SpaceKDELaunchDarklyLayoutLMLibrary (computing)Manhattan AssociatesMarc AndreessenMargo SeltzerMark ShuttleworthMathematical softwareMedical softwareMiguel de IcazaMinesweeper (video game)MirantisMitch KaporMitchell BakerMozillaMozilla FoundationMulti-user softwareNote GNumerical softwareOceanParcelsOnline helpOpen CollectiveOpen Quantum SafeOpen Software FoundationOpen Source InitiativeOpen source program officeOpen-source project governanceOpen-source softwareOpen-source software movementOperating systemOptimizelyOver-the-air updatePagerDutyPan-European Privacy-Preserving Proximity TracingPandat (software)Paul AllenPetrel (reservoir software)PhastPieter HintjensPlant design softwarePlanviewPosit PBCProduct activationPROSPERPSF LabPublic-domain softwareReliaSoftResearch softwareRichard StallmanRobot softwareRuntime systemSage GroupSawtooth SoftwareSCIgenSerializationService (systems architecture)Siemens Digital Industries SoftwareSoftware categoriesSoftware documentationSoftware HeritageSoftware industrySoftware patentSoftware repositorySoftware systemStatPlusSystem softwareThe Apache Software FoundationThe Free Software DefinitionThe Geometer's SketchpadTom Preston-WernerTomoPyVideo gameWes McKinneyWiki hosting serviceWorldwide Developers Conference