科技文献翻译.doc
《科技文献翻译.doc》由会员分享,可在线阅读,更多相关《科技文献翻译.doc(15页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、科技文献翻译 Section A Computer Program (计算机程序)Section B Software Life Cycle (软件生命周期)学生姓名: 彭金辉 学号: 20032430217 专 业: 计算机科学与技术 院(系): 信息工程学院 完成时间: 2007-5-20 2007 年 6月1日英文原文:Computer Program. IntroductionA computer program is a set of instructions that directs a computer to perform some processing function or
2、 combination functions. For the instructions to be carried out, a computer must execute a program, that is, that is the computer reads the program, and then follows the steps encoded in the program in a precise order until completion. A program can be executed many different times, with each executi
3、on yielding a potentially different result depending upon the options and data that the user gives the computer.Program fall into two major classes: application program and operating systems. An application program is one that carries out some function directly for a user, such as word processing or
4、 game playing. An operating system is a program that manages the computer and the various resources and devices connected to it, such as RAM(random access memory),hard drives, monitors, keyboards, printers, and modems, so that they may be used by other program. Examples of operating systems are DOS,
5、 Windows XP, OS/2, and UNIX. .Program Development Software designers create new program by using special applications programs, often called utility programs or development programs. A programmer uses another type of program called a text editor to write the new program in a special notation called
6、programming language. With the text editor, the programmer creates a text file, which is an ordered list of instructions, also called program source file. The individual instructions that make up the source file are called source code. At this point, a special application program translates the sour
7、ce code into machine code language, or object code a format that the operating systems will recognize as a proper program and be able to execute.Three types of application programs translate from source code to object code: compilers, interpreters, and assemblers. The three operate differently and o
8、n different types of programming languages, but they serve the same purpose of translating from a programming language into machine language.A compiler translates text files written in a high-level programming language- such as FORTRAN, C, or Pascal from the source code to the object code all at onc
9、e, This differs from the approach taken by interpreted language such as BASIC, in which a program in translated into object code statement by statement as each instruction is executed. The advantage to interpreted language is that they can begin executing the program immediately instead of having to
10、 waiting for all the source code to be compiled. Changes can also be made to the program fairly quickly without having waiting for it to be compiled again. The disadvantage of interpreted language is that they are slow to execute, since the entire program must translated one instruction at a time, e
11、ach time program is run. On the other hand, compiled language are compiled only once and thus can be executed by the computer much more quickly than interpreted languages, For this reason, compiled languages are more common and almost always used in professional and scientific applications.Another t
12、ype of translator is the assembler, which is used for programs or parts of programs written in assembly language. Assembly language is another programming language, but it is much more similar to machine language than other type of high-level language. In assembly language, a single statement can us
13、ually be translated into a single instruction of machine language. Today, assembly language is rarely used to written entire program, but is instead most often used when the programmer needs to directly control some aspect of the computers function.Programs are often written as a set of smaller piec
14、es, with each piece representing some aspect of the overall application program. After each piece has been compiled separately, a program called linker combines all the translated pieces into a single executable program.Program seldom work correctly the first time, so a program called a debugger is
15、often used to help problems called bugs. Debugger programs usually detect an event in the executing program and point the programmer back to the origin of the event in the program code.Recent programming systems, such as Java, use a combination of approaches to create and execute programs. A compile
16、r takes a Java source program and translates it into an intermediate form. Such intermediate programs are then transferred over the Internet into computers where an interpreter program then executes the intermediate from as an application program. Program ElementsMost programs are built from just a
17、few kings of steps that are repeated many times in different contexts and in different combinations throughout the program. The most common step performs some computation, and then proceeds to the next step in the program, in the order specified by the programmer.Programs often need to repeat a shor
18、t series of steps many times, for instance in looking through a list of game scores and finding the highest score. Such repetitive sequences of code are called loops.One of the capabilities that make computers so useful is their ability to make conditional decisions and perform different instruction
19、s based on the values of data being processed. If-then-else statements implement this function by testing some piece of data and then selecting one of the two sequences of instructions on the basis of the result. One of the instructions in these alternatives may be goto statement that directs the co
20、mputer to select its next instruction from a different part of the program. For example, a program might compare two numbers and branch to a different part of the program depending on the result of the comparison: If x is greater than y then goto instruction #10 else continuePrograms often use a spe
21、cific sequence of steps more than once. Such a sequence of steps can be grouped together into subroutine, which can then be called, or accessed, as needed in different parts of the main program. Each time a subroutine is called, the computer remembers where it was in the program when the call was ma
22、de, so that it can return there upon completion of the subroutine. Preceding each call, a program can specify that different data be used by the subroutine, allowing a very general piece of code to be written once and used in multiple ways.Most programs use several varieties of the subroutine. The m
23、ost common of these are function, procedure, library routines, system routines, and device drivers. Functions are short subroutines that compute some value, such as computations of angles, which the computer cannot compute with a single basic instruction. Procedures perform a more complex function,
24、such as sorting a set of name. Library routines are subroutines that are written for use by many different programs. System routines are similar to library routines but are actually found in operating system. They provider some service for the application programs, such as printing a line of text. D
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 科技 文献 翻译
限制150内