Global Information Lookup Global Information

Computer program information


Source code for a computer program written in the JavaScript language

A computer program is a sequence or set[a] of instructions in a programming language for a computer to execute. It is one component of software, which also includes documentation and other intangible components.[1]

A computer program in its human-readable form is called source code. Source code needs another computer program to execute because computers can only execute their native machine instructions. Therefore, source code may be translated to machine instructions using a compiler written for the language. (Assembly language programs are translated using an assembler.) The resulting file is called an executable. Alternatively, source code may execute within an interpreter written for the language.[2]

If the executable is requested for execution, then the operating system loads it into memory and starts a process.[3] The central processing unit will soon switch to this process so it can fetch, decode, and then execute each machine instruction.[4]

If the source code is requested for execution, then the operating system loads the corresponding interpreter into memory and starts a process. The interpreter then loads the source code into memory to translate and execute each statement. Running the source code is slower than running an executable.[5][b] Moreover, the interpreter must be installed on the computer.


Cite error: There are <ref group=lower-alpha> tags or {{efn}} templates on this page, but the references will not show without a {{reflist|group=lower-alpha}} template or {{notelist}} template (see the help page).

  1. ^ "ISO/IEC 2382:2015". ISO. 2020-09-03. Archived from the original on 2016-06-17. Retrieved 2022-05-26. [Software includes] all or part of the programs, procedures, rules, and associated documentation of an information processing system.
  2. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 7. ISBN 0-201-71012-9. An alternative to compiling a source program is to use an interpreter. An interpreter can directly execute a source program[.]
  3. ^ Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 98. ISBN 978-0-201-50480-4.
  4. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 32. ISBN 978-0-13-854662-5.
  5. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 7. ISBN 0-201-71012-9.

and 10 Related for: Computer program information

Request time (Page generated in 0.9039 seconds.)

Computer program

Last Update:

A computer program is a sequence or set of instructions in a programming language for a computer to execute. It is one component of software, which also...

Word Count : 13233

Computer programming

Last Update:

Computer programming or coding is the composition of sequences of instructions, called programs, that computers can follow to perform tasks. It involves...

Word Count : 3333

Computer

Last Update:

A computer is a machine that can be programmed to automatically carry out sequences of arithmetic or logical operations (computation). Modern digital electronic...

Word Count : 13936

Application software

Last Update:

An application program (software application, or application, or app for short) is a computer program designed to carry out a specific task other than...

Word Count : 2219

The Art of Computer Programming

Last Update:

The Art of Computer Programming (TAOCP) is a comprehensive monograph written by the computer scientist Donald Knuth presenting programming algorithms...

Word Count : 3501

Programming language

Last Update:

A programming language is a system of notation for writing computer programs. Programming languages are described in terms of their syntax (form) and...

Word Count : 8449

Computer chess

Last Update:

Computer chess includes both hardware (dedicated computers) and software capable of playing chess. Computer chess provides opportunities for players to...

Word Count : 13249

Computer virus

Last Update:

A computer virus is a type of malware that, when executed, replicates itself by modifying other computer programs and inserting its own code into those...

Word Count : 9228

Computer science

Last Update:

Fundamental areas of computer science Computer science is the study of computation, information, and automation. Computer science spans theoretical disciplines...

Word Count : 7040

Software bug

Last Update:

formatting, through to more obvious effects such as causing a program to crash, freezing the computer, or causing damage to hardware. Other bugs qualify as security...

Word Count : 5998

PDF Search Engine © AllGlobal.net