Listing (computer)

A listing or program listing is a printed list of lines of computer code or digital data (in human-readable form).

Extract of a BASIC listing
Listing of a long computer program from 1970s, printed by a line printer on fan-fold paper and bound in a binder.

Use cases

Listings are commonly used in education and computer-related books to show examples of code.

In the early days of programming, it was used to hand-check a program and as permanent storage. It was also common in 1970s and 1980s computer enthusiast magazines (for instance Creative Computing) and books like BASIC Computer Games for type-in programs.

Today, hard copy listings are seldom used because display screens can present more lines than formerly, programs tend to be modular, storage in soft copy is considered preferable to hard copy, and digital material is easily transmitted via networks, or on disks or tapes. Furthermore, data sets tend to be too large to be conveniently put on paper, and they are more easily searched in soft-copy form.

Assembly-code listings are occasionally analysed by programmers who want to understand how a compiler is translating their source code into assembly language. For example, the GNU C Compiler (gcc) will produce an assembly code listing if it is invoked with the command-line option -S.[1]

Listings of computer programs are still important in US patent law. They are defined as follows in the Manual of Patent Examining Procedure:[2]

"A computer program listing for the purpose of this section is defined as a printout that lists in appropriate sequence the instructions, routines, and other contents of a program for a computer. The program listing may be either in machine or machine-independent (object or source) language which will cause a computer to perform a desired procedure or task such as solve a problem, regulate the flow of work in a computer, or control or monitor events. ... Any computer program listing may, and any computer program listing having over 300 lines (up to 72 characters per line) must, be submitted on a compact disc in compliance with ยง 1.52(e)."

gollark: Wait, hold on, I'll spoiler tag it.
gollark: Oh, no, they said ||in <#424394851170385923> they had made a "taser" or something||.
gollark: WHY DID YOU INVOKE HIM
gollark: -70 degrees sounds like it would be fatal or at least quite bad for you for long durations.
gollark: Are you some sort of alien from Pluto?

References

  1. Options Controlling the Kind of Output, in the GCC 4.9.1 Manual, https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/Overall-Options.html#Overall-Options
  2. Manual of Patent Examining Procedure 37 C.F.R. 1.96, http://www.bitlaw.com/source/37cfr/1_96.html, 9th Edition, March 2014
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.