先阅读一段英文的:
computer
program
and
source
code
,看不懂不要紧,可以跳过去,
直接看下一条。
A computer program, or just a program, is a sequence of instructions, written to
perform
a
specified
task
with
a
computer.[1]
A
computer
requires
programs
to
function,
typically executing the program's instructions in a central processor.[2] The
program has an executable form that the computer can use directly to execute the
instructions. The same program in its human-readable source code form, from which
executable
programs
are
derived
(e.g.,
compiled),
enables
a
programmer
to
study
and
develop its algorithms. A collection of computer programs and related data is
referred to as the software.
Computer source code is typically written by computer programmers.[3] Source code
is
written
in
a
programming
language
that
usually
follows
one
of
two
main
paradigms:
imperative or declarative programming. Source code may be converted into an
executable
file
(sometimes
called
an
executable
program
or
a
binary)
by
a
compiler
and later executed by a central processing unit. Alternatively, computer programs
may be executed with the aid of an interpreter, or may be embedded directly into
hardware.
Computer programs may be ranked along functional lines: system software and
application software. Two or more computer programs may run simultaneously on one
computer
from
the
perspective
of
the
user,
this
process
being
known
as
multitasking.
计算机程序
计算机程序(
Computer
Program
)是指一组指示计算机或其他具有信息处理能力装置每一步
动作的指令,通常用某种程序设计语言编写,
运行于某种目标体系结构上。
打个比方,
一个
程序就像一个用汉语(程序设计语言)写下的红烧肉菜谱(程序),用于指导懂汉语和烹饪
手法的人(体系结构)来做这个菜。
通常,
计算机程序要经过编译和链接而成为一种人们不易看清而计算机可解读的格式,
然后
运行。未经编译就可运行的程序,通常称之为脚本程序(
script
)。