📄 200602281649395.html
字号:
<html>
<head><title>计算机程序</title></head>
<center><h1>计算机程序</h1></center>
<div><P align=right><FONT face=Verdana><FONT face=Verdana><FONT face=黑体 color=#ff0033><FONT face=Verdana><FONT color=#f70938><FONT face=黑体><a href="200604112229525.html" tppabs="http://www.itisedu.com/phrase/200604112229525.html" target="_new">中科永联</a>高级技术培训中心(</FONT><FONT face=黑体>www.itisedu.com</FONT><FONT face=黑体>)</FONT></FONT></FONT><IMG src="200632122617287.jpg" tppabs="http://www.itisedu.com/manage/Upload/image/200632122617287.jpg" border=0></FONT></FONT></FONT></P>
<P><FONT face=Verdana> <a href="200602281649395.html" tppabs="http://www.itisedu.com/phrase/200602281649395.html" target="_new">计算机程序</a>或者<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604232223565.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604232223565.html'" tppabs="http://www.itisedu.com/phrase/200604232223565.html" target="_new">软件程序</a>(通常简称<a href="200604232224305.html" tppabs="http://www.itisedu.com/phrase/200604232224305.html" target="_new">程序</a>)是指一组指示<a href="200603021438435.html" tppabs="http://www.itisedu.com/phrase/200603021438435.html" target="_new">计算机</a>每一步动作的指令,通常用某种<a href="200602281700255.html" tppabs="http://www.itisedu.com/phrase/200602281700255.html" target="_new">程序设计语言</a>编写,运行于某种目标<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603122156385.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603122156385.html'" tppabs="http://www.itisedu.com/phrase/200603122156385.html" target="_new">体系结构</a>上。打个比方,一个程序就像一个用汉语(<a href="200602281641255.html" tppabs="http://www.itisedu.com/phrase/200602281641255.html" target="_new">程序设计</a>语言)写下的红烧肉菜谱(程序),用于指导懂汉语的人(体系结构)来做这个菜。 通常,计算机程序要经过编译和链接而成为一种人们不易理解而计算机理解的格式,然后运行。未经编译就可运行的程序通常称之为脚本程序。</FONT></P>
<P><FONT face=Verdana><STRONG>程序的运行</STRONG></FONT></P>
<P><FONT face=Verdana> 为了一个程序运行,计算机加载程序代码,可能还要加载数据,从而初始化成一个开始状态,然后调用某种启动机制。在最低层上,这些是由一个引导序列开始的。</FONT></P>
<P><FONT face=Verdana> 在大多数计算机中,<a href="200602281634075.html" tppabs="http://www.itisedu.com/phrase/200602281634075.html" target="_new">操作系统</a>例如Windows等,加载并且执行很多程序。在这种情况下,一个计算机程序是指一个单独的可执行的映射,而不是当前在这个计算机上运行的全部程序。</FONT></P>
<P><FONT face=Verdana><STRONG>冯诺依曼体系结构</STRONG></FONT></P>
<P><FONT face=Verdana> 在一台基于最常见的冯诺依曼体系结构(又称Harvard <a href="200604241327575.html" tppabs="http://www.itisedu.com/phrase/200604241327575.html" target="_new">Architecture</a>)的计算机上,程序从某种外部设备,通常是硬盘,被加载到计算机里。 如果计算机选择冯诺依曼体系结构,那么程序就被加载入内存。 指令序列顺序执行,直到一条跳转或转移指令被执行,或者一个中断出现。所有这些指令都会改变指令寄存器的内容。</FONT></P>
<P><FONT face=Verdana> 基于这种体系计算机如果没有程序的支持将无法工作。一个计算机程序是一系列指令的集合。</FONT></P>
<P><FONT face=Verdana> 程序里的指令都是基于机器语言;程序通常首先用一种计算机程序设计语言编写,然后用编译程序或者解释执行程序翻译成机器语言。 有时,程序也可以用汇编语言编写,汇编语言实质就是表示机器语言的一组记号-在这种情况下,用于翻译的程序叫做汇编程序(Assembler)。</FONT></P>
<P><FONT face=Verdana><STRONG>程序和数据</STRONG></FONT></P>
<P><FONT face=Verdana> 程序已经被定义了。如何定义数据呢?数据可以被定义为被程序处理的信息。当我们考虑到整个计算机系统时,有时程序和数据的区别就不是那么明显了。中央处理器有时有一组微指令控制硬件,数据可以是一个有待执行的程序(参见脚本编程语言),程序可以编写成去编写其它的程序;所有这些例子都使程序和数据的比较成为一种视角的选择。有人甚至断言程序和数据没有区别。</FONT></P>
<P><FONT face=Verdana> 编写一个程序去生成另外一个程序的过程被称之为原编程(Metaprogramming)。它可以被应用于让程序根据给定数据生成代码。单一一个程序可能不足以表示给定数据的所有方面。让一个程序去分析这个数据并生成新的程序去处理数据所有的方面可能会容易一些。Lisp就是一例支持这种编程<a href="200603061709535.html" tppabs="http://www.itisedu.com/phrase/200603061709535.html" target="_new">模式</a>的程序语言。</FONT></P>
<P><FONT face=Verdana> 在<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200604230859255.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200604230859255.html'" tppabs="http://www.itisedu.com/phrase/200604230859255.html" target="_new">神经网络</a>里储存的权重是一种数据。正是这些权重数据,跟网路的拓扑结构一起,定义了网络的行为。人们通常很难界定这些数据到底表示什么或者它们是否可以由程序来代替。这个例子以及跟<a href="javascript:if(confirm('http://www.itisedu.com/phrase/200603011759495.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.itisedu.com/phrase/200603011759495.html'" tppabs="http://www.itisedu.com/phrase/200603011759495.html" target="_new">人工智能</a>相关的其它一些问题进一步考验程序和数据的区别。</FONT></P>
<P><FONT face=Verdana><STRONG>算法</STRONG></FONT></P>
<P><FONT face=Verdana> 算法指解决某个问题的严格方法,通常还需辅以某种程度上的运行性能分析。算法可以是纯理论的,也可以由一个计算机程序实现。理论算法通常根据复杂性分为不同<a href="200603090857555.html" tppabs="http://www.itisedu.com/phrase/200603090857555.html" target="_new">类</a>别;实现的算法通常经过颇析(Profiling)以测试其性能。请注意虽然一个算法在理论上有效可行,但是一个糟糕的实现仍会浪费宝贵的计算机资源。(更详细信息,参见算法信息论,Algorithmic Information Theory)</FONT></P>
<P><FONT face=Verdana><STRONG>开发</STRONG></FONT></P>
<P><FONT face=Verdana> 编写程序是以下步骤的一个往复过程:编写新的源代码,测试、分析和提高新编写的代码以找出语法和语义错误。从事这种工作的人叫做程序设计员。由于计算机的飞速发展,编程的要求和种类也日趋多样,由此产生了不同种类的程序设计员,每一种都有更细致的分工和任务。<a href="200602281725525.html" tppabs="http://www.itisedu.com/phrase/200602281725525.html" target="_new">软件工程</a>师和系统分析员就是两个例子。现在,编程的长时间过程被称之为“<a href="200603282233345.html" tppabs="http://www.itisedu.com/phrase/200603282233345.html" target="_new">软件开发</a>”或者<a href="200604232134205.html" tppabs="http://www.itisedu.com/phrase/200604232134205.html" target="_new">软件</a>工程。后者也由于这一学科的日益成熟而逐渐流行。</FONT></P>
<P><FONT face=Verdana> 因此,如今程序设计员可以指某一领域的编程专家,也可以泛指软件公司里编写一个复杂<a href="200602281706245.html" tppabs="http://www.itisedu.com/phrase/200602281706245.html" target="_new">软件系统</a>里某一块的一般程序员。一组为某一软件公司工作的程序员有时会被指定一个程序组长或者项目经理,用以监督项目进度和完成日期。大型软件通常经历由系统设计师的掌握的一个长时间的设计阶段,然后才交付给开发人员。牛仔式的编程(未经详细设计)是不为人所齿的。</FONT></P>
<P><FONT face=Verdana> 两种当今常见的程序开发方式之一是项目组开发方式。使用这种方式项目组里每一个成员都能对项目的进行发表意见,而由其中的某一个人协调不同意见。这样的项目组通常有10个左右的成员,这样做是为了便于管理。第二种开发方式是结对开发。</FONT></P></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -