Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the source program in the computer?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

The editor will share with you what the source program in the computer refers to. I hope you will gain something after reading this article. Let's discuss it together.

Source program, also known as source code, refers to uncompiled text files written in accordance with certain programming language specifications, is a series of human-readable computer language instructions. The ultimate goal of computer source programs is to translate human-readable text into binary instructions that can be executed by the computer. this process is called compilation and is done through the compiler.

Source program, also known as source code, refers to uncompiled text files written in accordance with certain programming language specifications, refers to a series of human-readable computer language instructions, usually written by high-level languages.

In modern programming languages, source programs can appear in the form of books or tapes or other carriers, but the most commonly used format is text files, which are typical for compiling computer programs.

The ultimate goal of computer source programs is to translate human-readable text into binary instructions that can be executed by the computer. this process is called compilation and is done through the compiler.

The file type of the source program refers to the special coding method used in the storage of the source program, which is easy to read and identify. Text file is the most commonly used file type, but many high-level languages and assembly languages have their own file types, which are generally saved in high-level language or assembly language, mainly for the convenience of compiler compilation in the future.

Action

The main functions of the source code are as follows:

Generate object code, that is, code that can be recognized by the computer.

Explain the software, that is, explain the writing of the software. A large number of beginners, and even a few experienced programmers, ignore the writing of software instructions, because although this part is not directly displayed in the generated program, it is not involved in compilation. However, it is of great benefit to software learning, sharing, maintenance and software reuse. As a result, writing software instructions is considered a good habit in the industry to create excellent programs, and some companies also insist that they must be written.

It is important to note that for compiled languages, such as C/C++/Java, changes to the source code cannot change the generated object code. If the target code needs to be modified accordingly, it must be recompiled. However, there are many popular scripting languages, such as Perl/Python, which do not need to be recompiled. After modifying the code, you can directly execute to see the results of the changes.

Code combination

As a special part of the software, the source code may be included in one or more files. A program does not have to be written in the same format of source code. For example, if a program is supported by the C language library, it can be written in C language, while the other part can be written in assembly language in order to achieve high efficiency. As far as the current situation is concerned, there is little need to write software directly in assembly language, because most of the time, the optimizer generated by the compiler is already very efficient, and it is more likely to use compiling languages such as Candlespace + to write the part of the core that needs speed, and dynamic languages such as Perl/Python/Lua to do core extensions, such as interface, management configuration, and so on. This does not lose efficiency, but also increases the flexibility of the program.

More complex software generally requires the participation of dozens or even hundreds of source code. In order to reduce the species complexity, we must introduce a system that can describe the relationship between each source code and how to compile correctly. In this context, the version control system (VCS) was born and became one of the necessary tools for developers to revise the code.

There is another combination: porting software written for one platform to another, such as porting software under Windows to Linux or MacOS, the technical term is software migration. Generally speaking, software that can run on multiple platforms is called cross-platform software.

Quality and efficiency

For computers, there is no really "good" source code; a good source program, first of all, is the correct code. Then there is the maintainability of the source program, and a good program style will enhance the maintainability of the code. Whether the source code is readable has become one of the standards of code quality / quality. Others put the efficiency of the program before maintainability. Many people have different views on source code quality / quality according to the function and application field of the program. But there is a general agreement that high-quality / high-quality source programs are the right programs.

Although we can achieve the same function of the computer through different languages, there are differences in execution efficiency. The general rule is that the more advanced the language is, the lower the execution efficiency is. This is why the files generated by assembly language are generally smaller than those generated by VB language. However, although the use of low-level languages can improve the efficiency of running, it will greatly reduce the efficiency of program development, which may make the development work very difficult, so most programmers do not care about the loss of running efficiency caused by high-level languages. use low-level languages at most.

After reading this article, I believe you have a certain understanding of "what is the source program in the computer". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for your reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report