Talking about the operating environment [program] program

Many people even "Hello, world!" Such a program may not be able to run up. For example, the C ++ you will, but if you use DirectX, a rotating 3D display screen "Hello, World!" You feel so relaxed it? Or give you a two-color LED screen 32 * 16, and then scroll to display "Hello, World!" At the top, then you are not going to rip off the ring? If the answer is "yes", you are right. Then Hao strong C language tutorial also see my face ignorant force, was stupid enough to just feel at home, and even entry-C language are not come to play, but also how to mix in the IT sector ah? After years of exploration but later he found himself not stupid, but the book was completely misled.

A language tutorial class was able to run from the environment, simply talk about language, which makes many mistakenly believe that using Notepad to write the code segment is saved as a text file .c end of text on it, then there is no then the. Just as a few examples of the C language I wrote before, probably many beginners do not know why the matter gcc, gcc do not know where, do not know even know how to use. So, in every school a language, you have to know how to write the language of the program is running.

In C, for example, you may know a wide use C, but C is not actually know how to use, the authors had previously only know a man named turbo stuff C, and a text interface C editor, can edit the finished compile and run, nothing more, how a C program running on the microcontroller no idea, but in fact this is the lack of understanding of the operating environment. On a PC, a program written in C, compiled and assembled become executable program, the performance of .exe program on Windows, on linux is an arbitrary binary file suffix, have executable permissions. Different operating systems will call different runtime, according to a precompiled conditions to generate the corresponding executable program.

If running on the microcontroller, also need the appropriate compiler, the program generates a corresponding binary code recognizable microcontroller. Because this program is running on a microcontroller, so it is a compiled program written monolithic erasable ROM up, because there is no operating system of the microcontroller it is necessary to set the clock cycle in response to an infinite loop in the microcontroller code, then the level of direct manipulation microcontroller output pins in each clock weeks. At this time, the pulse protocol can be defined from the microcontroller, you can directly control a light emitting diode matrix, may be connected to the encoder, so that encoder to control the light emitting diode matrix.

So, the programming language is just tip of the iceberg development projects, not to say that you will be able to do a language thing, but you have to thoroughly understand the programming language supported by the operating environment. For example, you write a 3D program, you have to know the card works, then you can know the meaning of each of the DirectX 3D API functions, so that you could write on top of said 3D effect.

As it is now more fashionable Python, it is actually the same Java virtual things, but do not compile Python, he explained directly run by the Python interpreter. So you want to run a Python program, your computer must have a Python interpreter, in general, is the official website to download a Python installation package, the installation, python or python.exe will find this under your installation directory stuff, the executable program is to explain, if not the interpreter, your Python program is meaningless. If you are using a Python.net Well, this is just a Python language branch on .net, .net program is compiled, there is nothing to do with the native Python.

Cobain wrote this article for people born may feel meaningless, because the machine when the environment will certainly let you write code, you let the compiler, but for non-Coban self-programming people, I think it is a little sense , although it is a lot of programming language in the document will say the operating environment, but for some of the more ancient programming language might not be, you want C ++ standard have been to 20, if you find a piece of code C20 ran C90 on, that will certainly be the problem. But you uninformed to think that, C ++ too difficult to learn the TM.

Guess you like

Origin www.cnblogs.com/icoolno1/p/11432816.html