What is everything related to the set of code for executing the program?

I understood, when I just ask a question, I don’t understand all the components that are part of the encoding process.

This seems like a silly question, but I can’t find a definitive answer on Google, Wiki, nothing.

What exactly are called all the details, and how do they work and intertwine? I say that no matter what you enter the code, whatever checks, which for errors, compile it and run it.

I would be grateful for any links, repetitions, etc. We apologize for such a soft, stupid question.

EDIT: Well, I'm trying to run Perl, so something about Perl will help. For example, how to use Notepad ++ and end up compiling Perl.

+4
source share
1 answer
  • Enter code
  • Run the code in one of two ways [*]
    • Compiled languages ​​(C, C ++, D, Java, C #)
      • Compile the code into an executable using the compilation tool.
      • Run executable file
    • Interpreted Languages ​​(Perl Python Ruby Lua Haskell Lisp and more)
      • Run the code in the interpreter, for example, perl foo.pl
  • Debugging code.

edit: Since the question has been clarified to be a Perl development cycle ...

You will need an editor and a "shell", which is used to control the system. In particular, you need a "command line interface". On Windows, you run this with cmd.exe running in the Run dialog box (Windows + R is the shortcut).

You see a strange black and white box with a blinking cursor, reminding you of ancient systems, noble gurus and wizards. You panic and use Google to get a web page . It is recommended that you find a command to change the directory and list files ...

Upon arrival at the directory where you saved your Perl file, you issue the perl myfilename.pl command perl myfilename.pl , where myfile.pl is the file you saved. As a rule, for programming you will find some errors that seem incomprehensible, and you again refer to Stackoverflow.com ...

* I left, was silent, and drove past many details, since this is an opening question. The full discussion is known as the "Senior Compiler Course".

+3
source

Source: https://habr.com/ru/post/1307732/


All Articles