Особенности сооружения опор в сложных условиях: Сооружение ВЛ в районах с суровыми климатическими и тяжелыми геологическими условиями...
Общие условия выбора системы дренажа: Система дренажа выбирается в зависимости от характера защищаемого...
Топ:
Выпускная квалификационная работа: Основная часть ВКР, как правило, состоит из двух-трех глав, каждая из которых, в свою очередь...
Оснащения врачебно-сестринской бригады.
Определение места расположения распределительного центра: Фирма реализует продукцию на рынках сбыта и имеет постоянных поставщиков в разных регионах. Увеличение объема продаж...
Интересное:
Подходы к решению темы фильма: Существует три основных типа исторического фильма, имеющих между собой много общего...
Влияние предпринимательской среды на эффективное функционирование предприятия: Предпринимательская среда – это совокупность внешних и внутренних факторов, оказывающих влияние на функционирование фирмы...
Распространение рака на другие отдаленные от желудка органы: Характерных симптомов рака желудка не существует. Выраженные симптомы появляются, когда опухоль...
Дисциплины:
|
из
5.00
|
Заказать работу |
Содержание книги
Поиск на нашем сайте
|
|
|
|
- Machines have their natural language like humans do.
- Computers do not understand the human language.
- The natural language of computers is the binary code — 1 and 0. These represent two states: on (1) and off (0).
- It would be hectic (слишком сложно) for us as humans to communicate with the computer in binary.
- One digit, either 0 or 1
Повторить конвертацию бинарной системы
Programming Languages
To communicate with machines who speak binary, we do so in a language that’s closer to our own natural language.
Programming languages are close to our natural languages. But they are more structured and must be thoroughly learned.
They could be high level or low level languages.
High level programming languages are farther away from the machine language than low level languages This “farther away” is usually called an abstraction.
The computer needs a way to understand our human language.
To do this, we’ll need a translator.
What are Translators
Source (источник) code refers (обращаться) to code written in a particular programming language.
Translators have the responsibility of converting your source code to the machine language — binary (ones and zeros).
We may refer to the binaries as Object Code, the Program or a common word today: App.
Source code—>translator—>binary
Translators can be any of:
Interpreters
- Some languages are interpreted.
- The translator processes the source code line by line and runs every line in the final program or app.
- This means that interpreted source code starts running until it encounters an error or reaches the end.
- Python is a good example of an interpreted programming language.
Compilers
- Convert the source code in its entirety via a compilation process to binary.
- The binary is then executed.
- If there were errors in the source code, they are detected during the compilation time and flagged.
- This interrupts the compilation process, and no binary is generated.
- Compiled source code may fail during run-time even after successfully compiling.
A hybrid of Interpreters and Compilers
- A hybrid translator is a combination of the Interpreter and Compiler.
- A popular hybrid programming language is Java.
- Java first compiles your source code to an intermediate format known as the Bytecode.
- The Bytecode is then interpreted and executed by a runtime engine also known as a Virtual machine.?????
- This enables (разрешать, давать возможность) the hybrid translators to run the bytecode on various operating systems.
- Сначала работает кампайлер потом уже интерпретатор
Assemblers
- Язык ассамблера - машинно-ориентированный язык программирования низкого уровня. Его команды прямо соответствуют отдельным командам машины или их последовательностям, также он может предоставлять дополнительные возможности облегчения программирования
- Как и сам язык, ассемблеры, как правило, специфичны для конкретной архитектуры, операционной системы и варианта синтаксиса языка.
- Это компиляторный язык, близок к языку процессора.
- Translate low-level Assembly language to binary.
Interpreters vs. Compilers
- Interpreters translate line by line and execute the line before going on to the next line.
- Compilers translate all lines of a program to a file (binary) and execute the whole file.
- Interpreted source code is executed directly from the source file.
- Compiled source code is converted to a binary file. The binary file is then executed.
Каждый раз когда мы скачиваем приложение, мы скачиваем бинарный код
|
|
|
Индивидуальные и групповые автопоилки: для животных. Схемы и конструкции...
История развития хранилищ для нефти: Первые склады нефти появились в XVII веке. Они представляли собой землянные ямы-амбара глубиной 4…5 м...
История создания датчика движения: Первый прибор для обнаружения движения был изобретен немецким физиком Генрихом Герцем...
Историки об Елизавете Петровне: Елизавета попала между двумя встречными культурными течениями, воспитывалась среди новых европейских веяний и преданий...
© cyberpedia.su 2017-2025 - Не является автором материалов. Исключительное право сохранено за автором текста.
Если вы не хотите, чтобы данный материал был у нас на сайте, перейдите по ссылке: Нарушение авторских прав. Мы поможем в написании вашей работы!