Последовательность инструкций предназначенных для выполнения компьютером

t1573766577aa.png

По вертикали:

 1. Условия, в которых действует исполнитель

2. Алгоритмическая конструкция, в которой в зависимости от результата проверки условия предусмотрен выбор одной из двух последовательностей действий

3. Советский математик, основоположник теории алгоритмов

4. Величина, значение которой указывается в программе и не меняется в процессе ее выполнения

5. Команда языка программирования высокого уровня

6. Набор некоторого числа однотипных элементов, которым присвоено одно имя

7. Алгоритм, содержащий последовательность действий, выполняемых многократно

8. При записи на языке паскаль разветвляющихся алгоритмов используют этот оператор

9. Некоторый объект, способный выполнять определенный набор команд

10. Алгоритмическая конструкция, отображающая естественный, последовательный порядок действий

11. Проводит полный анализ написанной программы и формирует уже готовый к исполнению машинный код

12. Наука об общих закономерностях процессов управления и передачи информации в машинах

13. Последовательность символов, которая игнорируется компилятором языка программирования

14. Расположение элементов массива в определенном порядке

15. Алгоритм, в котором все действия выполняются последовательно друг за другом и только один раз

16. Вспомогательный алгоритм, описывающий некоторые действия

17. Переменная типа real

18. Константа, переменная, функция, выражение и другой объект языка программирования, над которым производятся операции

19. Переменная, которая используется в функции

20. Вспомогательный алгоритм для выполнения вычислений

По горизонтали:

1. Процесс проверки работоспособности программы и исправления обнаруженных при этом ошибок

2. Последовательность инструкций, предназначенных для выполнения компьютером

3. Имя разработчика языка программирования Pascal

4. Способ организации вспомогательного алгоритма (подпрограммы), при котором эта подпрограмма (процедура или функция) в ходе выполнения ее операторов обращается сама к себе

5. Название алгоритма, позволяющего найти наибольший общий делитель двух натуральных чисел

6. Процесс пошагового выполнения программы

7. Предназначенное для конкретного исполнителя описание последовательности действий, приводящих от исходных данных к требуемому результату

8. Процесс создания компьютерных программ

9. Фамилия первого в мире программиста

10. Тип величины, описывающийся в разделе var

11. Тип данных, который используются для хранения последовательностей символов

12. Французского математика, в честь которого был назван язык программирования

13. Это процесс целенаправленного воздействия на объект; осуществляется для организации функционирования объекта по заданной программе

14. Оператор, с помощью которого можно задать конкретное значение величины

15. Параметры подпрограммы, указывающие, с какими аргументами следует обращаться к этой подпрограмме

16. Свойство алгоритма, означающее, что путь решения задачи разделен на отдельные действия

17. В Паскале read и readln относятся к этому оператору.

Пояснительная записка

Название разработки: Кроссворд по информатике по теме «Основы алгоритмизации и программирования».

Предмет: Информатика и ИКТ

Тема «Основы алгоритмизации и программирования» в информатике по учебнику Л.Л. Босовой начинается в 8 классе и продолжаются на всех последующих годах обучения. В данной разработке использованы основные понятия и определения за 8 и 9 класс по указанной теме. Таким образом, кроссворд предназначен для учеников 9 класса, но может быть применен и в 10-11 классах с целью повторения ранее изученного материала.

Цель разработки: обобщить и закрепить знания учащихся по теме: «Основы алгоритмизации и программирования».

Задачи:

Образовательные

 Проверка и закрепление полученных знаний, повышение ИКТ компетенции учащихся;

Развивающие

развитие логического и алгоритмического мышления;

развитие памяти и внимания;

Развития самостоятельности и способности к самоорганизации;

Формирование навыков самоанализа и самоконтроля;

Воспитательные

развитие познавательного интереса.

Литература

Босова Л.Л., А. Ю. Босова. Информатика: Учебник для 9 класса. — М.: БИНОМ. Лаборатория знаний, 2015.- 184 с., ил.

Босова Л.Л., Босова А.Ю. Информатика: Учебник для 8 класса. – М.: БИНОМ. Лаборатория знаний, 2014.

Босова Л.Л. Информатика: методическое пособие для 7-9 классов. – М.: БИНОМ. Лаборатория знаний, 2015. – 472 с.: ил.

Ответы

По вертикали:

1. Среда

2. Ветвление

3. Марков

4. Константа

5. Оператор

6. Массив

7. Цикл

8. Условный

9. Исполнитель

10. Следование

11. Компилятор

12. Кибернетика

13. Комментарий

14. Сортировка

15. Линейный

16. Процедура

17. Вещественная

18. Операнд

19. Параметр

20. Функция

По горизонтали:

1. Отладка

2. Программа

3. Никлаус

4. Рекурсия

5. Евклида

6. Трассировка

7. Алгоритм

8. Программирование

9. Лавлейс

10. Переменная

11. Строковый

12. Паскаль

13. Управление

14. Присваивания

15. Формальные

16. Дискретность

17. Ввод

Трансляция, компиляция и интерпретация

Программа

это последовательность инструкций,
предназначенных для выполнения
компьютером. В настоящее время программы
оформляются в виде текста, который
записывается в файлы. Этот текст является
результатом деятельности программиста
и, несмотря на специфику формального
языка, остаётся программой
для программиста
.

Процесс
создания программы предполагает
несколько этапов. За этапом разработки
проекта программы следует этап
программирования. На этом этапе пишется
программа. Программистами этот текст
воспринимается легче двоичного кода,
поскольку различные мнемонические
сокращения и имена заключают дополнительную
информацию.

Файл
с исходным текстом программы (его также
называют исходным модулем) обрабатывается
транслятором,
который осуществляет перевод программы
с языка программирования в понятную
машине последовательность кодов.

Транслятор

программаили техническое средство, выполняющеетрансляцию
программы
.
Машинная программа, которая транслирует
с одного языкана другой и, в частности, с одногоязыка
программированияна другой.
Обрабатывающая программа, предназначенная
для преобразования исходной программы
вобъектный
модуль.

Транслятор
обычно выполняет также диагностику
ошибок, формирует словари идентификаторов,
выдаёт для печати тексты программы и
т.д.

Трансляция
программы

преобразование программы, представленной
на одном из языков
программирования, в программу на
другом языке и, в определённом смысле,
равносильную первой.

Язык,
на котором представлена входная
программа, называется исходным
языком
,
а сама программа 
исходным
кодом
.
Выходной язык называется целевым
языком

или объектным
кодом
.

Виды трансляторов

Трансляторы
подразделяют:

  • Адресный.
    Функциональное устройство, преобразующее
    виртуальный
    адрес
    (англ.
    Virtual
    address
    )
    в реальный адрес
    (англ.
    Memory
    address
    ).

  • Диалоговый.
    Обеспечивает использование языка
    программирования в режиме
    разделения времени.

  • Многопроходной.
    Формирует объектный
    модуль
    за несколько просмотров исходной
    программы.

  • Обратный.
    То же, что детранслятор.
    См. также: декомпилятор,
    дизассемблер.

  • Однопроходной.
    Формирует объектный модуль за один
    последовательный просмотр исходной
    программы.

  • Оптимизирующий.
    Выполняет оптимизацию
    кода в создаваемом объектном модуле.

  • Синтаксически-ориентированный
    (синтаксически-управляемый)
    .
    Получает на вход описание синтаксиса
    и семантики
    языка и текст на описанном языке, который
    и транслируется в соответствии с
    заданным описанием.

  • Тестовый.
    Набор макрокоманд
    языка
    ассемблера,
    позволяющих задавать различные
    отладочные
    процедуры
    в программах, составленных на языке
    ассемблера.

Трансляторы
реализуются в виде компиляторов
или интерпретаторов.
С точки зрения выполнения работы
компилятор и интерпретатор существенно
различаются.

Компиля́тор
(англ.
compiler

составитель, собиратель) транслятор,
выполняющий преобразование программы,
составленной на исходном языке,
вобъектный
модуль. Программа, переводящая текст
программы наязыке
высокого уровня, в эквивалентную
программу намашинном
языке.

  • Программа,
    предназначенная для трансляции
    высокоуровневого языка в абсолютный
    кодили, иногда, в язык ассемблера.
    Входной информацией для компилятора
    (исходный
    код) является описание алгоритма или
    программа напроблемно-ориентированном
    языке, а на выходе компилятора —
    эквивалентное описание алгоритма намашинно-ориентированном
    языке(объектный
    код).

Компиляция
трансляция
программы, составленной на исходном
языке, в объектный модуль. Осуществляется
компилятором.

Компилировать

проводить трансляцию машинной программы
с проблемно-ориентированного языка на
машинно-ориентированный язык.

Компилятор
читает всю программу целиком,
делает ее перевод и создает законченный
вариант программы на машинном языке,
который затем и выполняется.

Интерпретатор
(англ. interpreter

истолкователь, устный переводчик)
переводит и выполняет программу строка
за строкой
.
Интерпретатор берёт очередной оператор
языка из текста программы, анализирует
его структуру и затем сразу исполняет
(обычно после анализа оператор
транслируется в некоторое промежуточное
представление или даже машинный код
для более эффективного дальнейшего
исполнения). Только после того как
текущий оператор успешно выполнен,
интерпретатор перейдёт к следующему.
При этом если один и тот же оператор
будет выполняться в программе многократно,
интерпретатор будет выполнять его так
как, как будто встретил впервые. Вследствие
этого программы, в которых требуется
осуществить большой объём вычислений,
будут выполняться медленно. Кроме того,
для выполнения программы на другом
компьютере там тоже должен стоять
интерпретатор – ведь без него текст
является просто набором символов.

По-другому
можно сказать, что интерпретатор
моделирует некоторую вычислительную
виртуальную машину, для которой базовыми
инструкциями служат не элементарные
команды процессора, а операторы языка
программирования.

Различия
между компиляцией и интерпретацией.

1.
После того, как программа откомпилирована,
ни сама исходная программа, ни компилятор
более не нужны. В то же время программа,
обрабатываемая интерпретатором, должна
заново переводиться
на машинный язык при каждом очередном
запуске программы.

2.
Откомпилированные программы работают
быстрее, но интерпретируемые проще
исправлять и изменять.

3.
Каждый конкретный язык ориентирован
либо на компиляцию, либо на интерпретацию

в зависимости от того, для каких целей
он создавался. Например,
Паскаль
обычно используется для решения довольно
сложных задач, в которых важна скорость
работы программ. Поэтому данный язык
обычно реализуется с помощью компилятора.

С
другой стороны, Бейсик
создавался как язык для начинающих
программистов, для которых построчное
выполнение программы имеет неоспоримые
преимущества.

Практически
все языки
программирования низкого уровняитретьего
поколения, вродеассемблера,СиилиМодулы-2,
являются компилируемыми, а болеевысокоуровневые
языки, вродеPythonилиSQL, —
интерпретируемыми.

Иногда
для одного языка имеется и
компилятор
,
и
интерпретатор
.
В этом случае для разработки и тестирования
программы можно воспользоваться
интерпретатором, а затем откомпилировать
отлаженную программу, чтобы повысить
скорость ее выполнения. Существует
взаимопроникновение процессов трансляции
и интерпретации: интерпретаторы могут
быть компилирующими (в том числе с
динамической компиляцией), а в трансляторах
может требоваться интерпретация для
конструкций метапрограммирования(например, длямакросов
в языке ассемблера,условной
компиляциив Си или дляшаблонов
в C++).

4.
Трансляция и интерпретация 
разные процессы: трансляция занимается
переводом программ с одного языка на
другой, а интерпретация отвечает за
исполнение программ. Однако, поскольку
целью трансляции как правило является
подготовка программы к интерпретации,
то эти процессы обычно рассматриваются
вместе.

Вывод:
Недостаток компилятора – трудоёмкость
трансляции языков программирования,
ориентированных на обработку данных
сложных структур, часто заранее
неизвестной или динамически меняющейся
во время работы программы. Тогда в
машинный код приходиться вставлять
множество дополнительных проверок,
анализировать наличие ресурсов
операционной системы, динамически их
захватывать и освобождать, формировать
и обрабатывать в памяти компьютера
сложные объекты, что на уровне жестко
заданных машинных инструкций осуществить
довольно трудно, а для задачи почти
невозможно.

С
помощью интерпретатора, наоборот,
допустимо в любой момент остановить
программу, исследовать содержимое
памяти, организовать диалог с пользователем,
выполнить сколь угодно сложные
преобразования и при этом постоянно
контролировать состояние окружающей
программно — аппаратной среды, благодаря
чему достигается высокая надёжность
работы. Интерпретатор при выполнении
каждого оператора проверяет множество
характеристик операционной системы и
при необходимости максимально подробно
информирует разработчика о возникающих
проблемах. Кроме того, интерпретатор
очень удобен для использования в
качестве инструмента изучения
программирования, так как позволяет
понять принципы работы любого отдельного
оператора языка.

Соседние файлы в папке Лекции по информатике

  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #
  • #

t1573766577aa.png

По вертикали:

 1. Условия, в которых действует исполнитель

2. Алгоритмическая конструкция, в которой в зависимости от результата проверки условия предусмотрен выбор одной из двух последовательностей действий

3. Советский математик, основоположник теории алгоритмов

4. Величина, значение которой указывается в программе и не меняется в процессе ее выполнения

5. Команда языка программирования высокого уровня

6. Набор некоторого числа однотипных элементов, которым присвоено одно имя

7. Алгоритм, содержащий последовательность действий, выполняемых многократно

8. При записи на языке паскаль разветвляющихся алгоритмов используют этот оператор

9. Некоторый объект, способный выполнять определенный набор команд

10. Алгоритмическая конструкция, отображающая естественный, последовательный порядок действий

11. Проводит полный анализ написанной программы и формирует уже готовый к исполнению машинный код

12. Наука об общих закономерностях процессов управления и передачи информации в машинах

13. Последовательность символов, которая игнорируется компилятором языка программирования

14. Расположение элементов массива в определенном порядке

15. Алгоритм, в котором все действия выполняются последовательно друг за другом и только один раз

16. Вспомогательный алгоритм, описывающий некоторые действия

17. Переменная типа real

18. Константа, переменная, функция, выражение и другой объект языка программирования, над которым производятся операции

19. Переменная, которая используется в функции

20. Вспомогательный алгоритм для выполнения вычислений

По горизонтали:

1. Процесс проверки работоспособности программы и исправления обнаруженных при этом ошибок

2. Последовательность инструкций, предназначенных для выполнения компьютером

3. Имя разработчика языка программирования Pascal

4. Способ организации вспомогательного алгоритма (подпрограммы), при котором эта подпрограмма (процедура или функция) в ходе выполнения ее операторов обращается сама к себе

5. Название алгоритма, позволяющего найти наибольший общий делитель двух натуральных чисел

6. Процесс пошагового выполнения программы

7. Предназначенное для конкретного исполнителя описание последовательности действий, приводящих от исходных данных к требуемому результату

8. Процесс создания компьютерных программ

9. Фамилия первого в мире программиста

10. Тип величины, описывающийся в разделе var

11. Тип данных, который используются для хранения последовательностей символов

12. Французского математика, в честь которого был назван язык программирования

13. Это процесс целенаправленного воздействия на объект; осуществляется для организации функционирования объекта по заданной программе

14. Оператор, с помощью которого можно задать конкретное значение величины

15. Параметры подпрограммы, указывающие, с какими аргументами следует обращаться к этой подпрограмме

16. Свойство алгоритма, означающее, что путь решения задачи разделен на отдельные действия

17. В Паскале read и readln относятся к этому оператору.

Пояснительная записка

Название разработки: Кроссворд по информатике по теме «Основы алгоритмизации и программирования».

Предмет: Информатика и ИКТ

Тема «Основы алгоритмизации и программирования» в информатике по учебнику Л.Л. Босовой начинается в 8 классе и продолжаются на всех последующих годах обучения. В данной разработке использованы основные понятия и определения за 8 и 9 класс по указанной теме. Таким образом, кроссворд предназначен для учеников 9 класса, но может быть применен и в 10-11 классах с целью повторения ранее изученного материала.

Цель разработки: обобщить и закрепить знания учащихся по теме: «Основы алгоритмизации и программирования».

Задачи:

Образовательные

 Проверка и закрепление полученных знаний, повышение ИКТ компетенции учащихся;

Развивающие

развитие логического и алгоритмического мышления;

развитие памяти и внимания;

Развития самостоятельности и способности к самоорганизации;

Формирование навыков самоанализа и самоконтроля;

Воспитательные

развитие познавательного интереса.

Литература

Босова Л.Л., А. Ю. Босова. Информатика: Учебник для 9 класса. — М.: БИНОМ. Лаборатория знаний, 2015.- 184 с., ил.

Босова Л.Л., Босова А.Ю. Информатика: Учебник для 8 класса. – М.: БИНОМ. Лаборатория знаний, 2014.

Босова Л.Л. Информатика: методическое пособие для 7-9 классов. – М.: БИНОМ. Лаборатория знаний, 2015. – 472 с.: ил.

Ответы

По вертикали:

1. Среда

2. Ветвление

3. Марков

4. Константа

5. Оператор

6. Массив

7. Цикл

8. Условный

9. Исполнитель

10. Следование

11. Компилятор

12. Кибернетика

13. Комментарий

14. Сортировка

15. Линейный

16. Процедура

17. Вещественная

18. Операнд

19. Параметр

20. Функция

По горизонтали:

1. Отладка

2. Программа

3. Никлаус

4. Рекурсия

5. Евклида

6. Трассировка

7. Алгоритм

8. Программирование

9. Лавлейс

10. Переменная

11. Строковый

12. Паскаль

13. Управление

14. Присваивания

15. Формальные

16. Дискретность

17. Ввод

Наша
учеба, работа, личные дела — это
каждодневное, ежечасное решение различных
задач. Каждая задача требует для своего
решения выполнения определенных
действий. Многократно решая задачи,
можно заметить, что необходимые действия
должны выполняться в строго определенном
порядке. В таких случаях принято говорить
об алгоритме решения задач. Понятие
алгоритма считается одним из древнейших.
Оно возникло задолго до появления ЭВМ,
но с развитием вычислительной техники
его роль значительно возросла.

Происхождение
понятия алгоритма связано с именем
великого среднеазиатского ученого Аль
Хорезми, жившего в 9 веке н.э. Им были
сформулированы впервые правила выполнения
четырех арифметических действий.

Алгоритм
— это точная инструкция, а инструкции
встречаются во всех областях человеческой
деятельности. Однако не всякую инструкцию
можно назвать алгоритмом. Решая задачу,
человек часто не задумывается над тем,
как он это делает, и порой, затрудняется
записать последовательность выполняемых
действий. Но для того, чтобы поручить
решение задачи автоматическому устройству
необходимо составить алгоритм с четким
указанием последовательности действий.
Чтобы автоматическое устройство могло
решить задачу в соответствии с алгоритмом,
оно должно понимать каждое указание
алгоритма. Алгоритм применяется к
искомому набору исходных величин,
называемых аргументами. Цель исполнения
алгоритма получение определенного
результата, если в результате исполнения
алгоритма не достигнута определенная
цель, значит алгоритм либо неверен, либо
не завершен.

Алгоритм
и его свойства

Алгоритмом
называется точная инструкция исполнителю
в понятной для него форме, определяющая
процесс достижения поставленной цели
на основе имеющихся исходных данных за
конечное число шагов.

Основными
свойствами алгоритмов являются:

  1. Универсальность
    (массовость) —

    применимость алгоритма к различным
    наборам исходных данных.

  2. Дискретность
    — процесс решения задачи по алгоритму
    разбит на отдельные действия.

  3. Однозначность
    — правила и порядок выполнения действий
    алгоритма имеют единственное толкование.

  4. Конечность
    — каждое из действий и весь алгоритм в
    целом обязательно завершаются.

  5. Результативность

    по завершении выполнения алгоритма
    обязательно получается конечный
    результат.

  6. Выполнимость
    — результата алгоритма достигается за
    конечное число шагов.

Алгоритм
считается правильным, если его выполнение
дает правильный результат. Соответственно
алгоритм содержит ошибки, если можно
указать такие допустимые исходные
данные или условия, при которых выполнение
алгоритма либо не завершится вообще,
либо не будет получено никаких результатов,
либо полученные результаты окажутся
неправильными.

Выделяют
три крупных класса алгоритмов:

  • вычислительные
    алгоритмы,
    работающие со сравнительно простыми
    видами данных, такими как числа и
    матрицы, хотя сам процесс вычисления
    может быть долгим и сложным;

  • информационные
    алгоритмы, представляющие собой набор
    сравнительно простых процедур, работающих
    с большими объемами информации (алгоритмы
    баз данных);

  • управляющие
    алгоритмы, генерирующие различные
    управляющие воздействия на основе
    данных, полученных от внешних процессов,
    которыми алгоритмы управляют.

Способы
записи алгоритмов

Для
записи алгоритмов используют самые
разнообразные средства. Выбор средства
определяется типом исполняемого
алгоритма. Выделяют следующие основные
способы записи алгоритмов:

  • вербальный,
    когда алгоритм описывается на человеческом
    языке;

  • символьный,
    когда алгоритм описывается с помощью
    набора символов;

  • графический,
    когда алгоритм описывается с помощью
    набора графических изображений.

Общепринятыми
способами записи являются графическая
запись с помощью блок-схем и символьная
запись с помощью какого-либо алгоритмического
языка.

Описание
алгоритма с помощью блок схем осуществляется
рисованием последовательности
геометрических фигур, каждая из которых
подразумевает выполнение определенного
действия алгоритма. Порядок выполнения
действий указывается стрелками. Написание
алгоритмов с помощью блок-схем
регламентируется ГОСТом. Внешний вид
основных блоков, применяемых при
написании блок схем, приведен на рисунке:

В
зависимости от последовательности
выполнения действий в алгоритме выделяют
алгоритмы линейной, разветвленной и
циклической структуры.

В
алгоритмах
линейной структуры

действия выполняются последовательно
одно за другим:

В
алгоритмах
разветвленной структуры

в зависимости от выполнения или
невыполнения какого-либо условия
производятся различные последовательности
действий. Каждая такая последовательность
действий называется ветвью
алгоритма.

В
алгоритмах
циклической структуры

в зависимости от выполнения или
невыполнения какого-либо условия
выполняется повторяющаяся последовательность
действий, называющаяся телом
цикла
.
Вложенным
называется цикл, находящийся внутри
тела другого цикла. Различают циклы с
предусловием
и постусловием:

Итерационным
называется цикл, число повторений
которого не задается, а определяется в
ходе выполнения цикла. В этом случае
одно повторение цикла называется
итерацией.

Языки
программирования

На
практике в качестве исполнителей
алгоритмов используются специальные
автоматы — компьютеры. Для того, чтобы
ЭВМ могла выполнять программу, программа
должна быть записана по строгим правилам
в виде, доступном для обработки на ЭВМ.
Программа для такой машины записывается
на так называемом машинном
языке
,
т. е. представляет собой последовательность
двоичных чисел. Придумывать и записывать
программу на машинном языке неудобно.
Это нудная и долгая работа не обходилась
без ошибок, которые было очень непросто
найти.

Поэтому
возникла идея записывать программу на
так называемом алгоритмическом
языке

или языке
программирования
.
Языки
программирования
– специально разработанные искусственные
языки, предназначенные исключительно
для записи алгоритмов, исполнение
которых поручается ЭВМ.

Обычный
разговорный язык состоит из четырех
основных элементов: символов, слов,
словосочетаний и предложений.
Алгоритмический язык содержит подобные
элементы, только слова называют
элементарными конструкциями, словосочетания
— выражениями, предложения — операторами.
Алгоритмический язык (как и любой другой
язык), образуют три его составляющие:
алфавит, синтаксис и семантика.

Алфавит
– фиксированный для данного языка набор
символов (букв, цифр, специальных знаков
и т.д.), которые могут быть использованы
при написании программы.

Синтаксис
— правила построения из символов алфавита
специальных конструкций, с помощью
которых составляется алгоритм.

Семантика
— система правил толкования конструкций
языка. Таким образом, программа
составляется с помощью соединения
символов алфавита в соответствии с
синтаксическими правилами и с учетом
правил семантики.

Краткая
история и классификация языков
программирования

Первые
языки программирования были очень
примитивными и мало чем отличались от
формализованных упорядоченных
последовательностей единиц и нулей,
понятных компьютеру. Использование
таких языков было крайне неудобно с
точки зрения программиста, так как он
должен был знать числовые коды всех
машинных команд, должен был сам
распределять память под команды программы
и данные.

Для
того, чтобы облегчить общение человека
с ЭВМ были созданы языки программирования
типа Ассемблер. Переменные величины
стали изображаться символическими
именами. Числовые коды операций заменились
на мнемонические обозначения, которые
легче запомнить. Язык программирования
приблизился к человеческому языку, и
отдалился от языка машинных команд.

Один
из первых языков программирования –
Фортран
(Formula
Translation)
был создан в середине 50-х годов. Благодаря
своей простоте и тому, что на этом языке
накоплены большие библиотеки программ
Фортран и в наши дни остается одним из
самых распространенных. Он используется
для инженерных и научных расчетов, для
решения задач физики и других наук с
развитым математическим аппаратом.

Для
решения экономических задач был создан
язык программирования — Кобол.

Расширение
областей применения ЭВМ влечет за собой
создание языков, ориентированных на
новые сферы применения: Снобол

алгоритмический язык для обработки
текстовой информации, Лисп

алгоритмический язык для обработки
символов. Лисп находит широкое
применение в исследованиях по созданию
искусственного интеллекта.

В
1968 г. был объявлен конкурс на лучший
язык программирования для обучения
студентов. Победителем стал язык
Алгол-68,
но широкого распространения не получил.
Для этого конкурса Никлаус Вирт создал
язык Паскаль,
достаточно простой, удобный, с наличием
мощных средств структурирования данных.
Хотя Паскаль был разработан как язык
для обучения программированию, он
впоследствии получил широкое развитие
и в настоящее время считается одним из
самых используемых языков. Для обучения
младших школьников Самуэлем Пайпертом
был разработан язык Лого.
Он отличается простотой и богатыми
возможностями.

Широкое
распространение в школах в качестве
обучающего языка получил язык Бейсик,
позволяющий взаимодействовать с ЭВМ в
режиме непосредственного диалога.
Спустя много лет после изобретения
Бейсика, он и сегодня самый простой для
освоения из десятков языков общецелевого
программирования.

Необходимость
разработки больших программ, управляющих
работой ЭВМ, потребовала создания
специального языка программирования
СИ
в начале 70-х г. Он является одним из
универсальных языков программирования.
В отличии от Паскаля, в нем заложены
возможности непосредственного обращения
к некоторым машинным командам и к
определенным участкам памяти компьютера.
Си широко используется как
инструментальный язык для разработки
операционных систем, трансляторов, баз
данных и других системных и прикладных
программ. Си – это язык программирования
общего назначения, хорошо известный
своей эффективностью, экономичностью,
и переносимостью. Во многих случаях
программы, написанные на Си, сравнимы
по скорости с программами, написанными
на языке Ассемблера. При этом они имеют
лучшую наглядность и их более просто
сопровождать. Си сочетает эффективность
и мощность в относительно малом по
размеру языке.

Появление
функционального программирования
привело к созданию языка Пролог.
Этот язык программирования разрабатывался
для задач анализа и понимания естественных
языков на основе языка формальной логики
и методов автоматического доказательства
теорем.

В
80-х г. 20 века был создан язык Ада.
Этот
язык в дополнение к классическим
свойствам, обеспечивает программирование
задач реального времени и моделирования
параллельного решения задач.

Существуют
различные классификации
языков программирования
.
По наиболее распространенной классификации
все языки программирования делят на
языки низкого,
высокого и сверхвысокого
уровня.

В
группу языков низкого
уровня

входят машинные языки и языки символического
кодирования: (Автокод,
Ассемблер
).
Операторы этого языка – это те же
машинные команды, но записанные
мнемоническими кодами, а в качестве
операндов используются не конкретные
адреса, а символические имена. Все языки
низкого уровня ориентированы на
определенный тип компьютера, т. е.
являются машинно-зависимыми.
Машинно-ориентированные
языки

– это языки, наборы операторов и
изобразительные средства которых
существенно зависят от особенностей
ЭВМ (внутреннего языка, структуры памяти
и т.д.).

Следующую,
существенно более многочисленную группу
составляют языки программирования
высокого
уровня
.
Это Фортран,
Алгол, Кобол, Паскаль, Бейсик, Си, Пролог
и т.д
.
Эти языки машинно-независимы, т.к. они
ориентированы не на систему команд той
или иной ЭВМ, а на систему операндов,
характерных для записи определенного
класса алгоритмов. Однако программы,
написанные на языках высокого уровня,
занимают больше памяти и медленнее
выполняются, чем программы на машинных
языках.

К
языкам сверхвысокого
уровня

можно отнести лишь Алгол-68
и APL.

Повышение уровня этих языков произошло
за счет введения сверхмощных операций
и операторов.

Другая
классификация делит языки на вычислительные
и языки символьной
обработки.

К первому типу относят Фортран, Паскаль,
Алгол, Бейсик, Си, ко второму типу — Лисп,
Пролог, Снобол и др.

В современной
информатике можно выделить два основных
направления развития языков
программирования: процедурное
и непроцедурное.

Процедурное
программирование возникло на заре
вычислительной техники и получило
широкое распространение. В процедурных
языках программа явно описывает действия,
которые необходимо выполнить, а результат
задается только способом получения его
при помощи некоторой процедуры, которая
представляет собой определенную
последовательность действий.

Среди
процедурных языков выделяют в свою
очередь структурные
и операционные
языки.
В структурных языках одним оператором
записываются целые алгоритмические
структуры: ветвления, циклы и т.д.
В операционных языках для этого
используются несколько операций. Широко
распространены следующие структурные
языки: Паскаль, Си, Ада, ПЛ/1. Среди
операционных известны Фортран, Бейсик,
Фокал.

Непроцедурное
(декларативное)
программирование появилось в начале
70-х годов 20 века, но стремительное его
развитие началось в 80-е годы, когда был
разработан японский проект создания
ЭВМ пятого поколения, целью которого
явилась подготовка почвы для создания
интеллектуальных машин. К непроцедурному
программированию относятся функциональные
и логические
языки.

В функциональных
языках
программа описывает вычисление некоторой
функции. Обычно эта функция задается
как композиция других, более простых,
те в свою очередь разлагаются на еще
более простые и т.д. Один из основных
элементов в функциональных языках —
рекурсия,
то есть вычисление значения функции
через значение этой же функции от других
элементов. Присваивания и циклов в
классических функциональных языках нет.

В логических
языках
программа вообще не описывает действий.
Она задает данные и соотношения между
ними. После этого системе можно задавать
вопросы. Машина перебирает известные
и заданные в программе данные и находит
ответ на вопрос. Порядок перебора не
описывается в программе, а неявно
задается самим языком. Классическим
языком логического программирования
считается Пролог. Построение логической
программы вообще не требует алгоритмического
мышления, программа описывает статические
отношения объектов, а динамика находится
в механизме перебора и скрыта от
программиста.

Можно
выделить еще один класс языков
программирования — объектноориентированные
языки
высокого
уровня.
На таких языках не описывают подробной
последовательности действий для решения
задачи, хотя они содержат элементы
процедурного программирования.
Объектно-ориентированные языки, благодаря
богатому пользовательскому интерфейсу,
предлагают человеку решить задачу в
удобной для него форме. Примером такого
языка может служить язык программирования
визуального общения Object Pascal.

Языки
описания сценариев
,
такие как Perl, Python, Rexx, Tcl и языки оболочек
UNIX, предполагают стиль программирования,
весьма отличный от характерного для
языков системного уровня. Они
предназначаются не для написания
приложения с нуля, а для комбинирования
компонентов, набор которых создается
заранее при помощи других языков.
Развитие и рост популярности Internet также
способствовали распространению языков
описания сценариев. Так, для написания
сценариев широко употребляется язык
Perl, а среди разработчиков Web-страниц
популярен JavaScript.

Основные
элементы алгоритмического языка

Основными
понятиями в алгоритмических языках
являются следующие.

Имена
(идентификаторы)

— последовательность символов для
обозначения объектов программы
(переменных, массивов, функций и дp.).

Операции.
Существуют следующие типы операций:

  • арифметические
    операции
    :
    сложение, обозначается символом “+”;
    вычитание, обозначается символом “-”;
    умножение, обозначается символом “*”;
    деление, обозначается символом “/” и
    дp. ;

  • логические
    операции
    :
    операции “логическое и”, “логическое
    или”, “логическое не” и др.;

  • операции
    отношения
    :
    меньше, обозначается символом “<”;
    больше, обозначается символом “>”;
    меньше или равно, обозначается символами
    “<=”; больше или равно, обозначается
    символами “>=”; равно, обозначается
    символом “=”; не равно, обозначается
    символами “<>”.

  • операция
    конкатенации

    символьных значений дpуг с другом,
    изображается знаком «+».

Ключевые
слова

– это слова языка, имеющие строго
определенное назначение, которые не
могут использоваться в качестве
идентификаторов.

Данные
— величины, обрабатываемые программой.
Имеется тpи основных вида данных:
константы,
переменные
и массивы.

Константы
— это данные, которые зафиксированы в
тексте программы и не изменяются в
процессе ее выполнения.

Примеры
констант:

числовые:
7.5, 12;

логические:
true (истина), false (ложь);

символьные:
«А», «+»;

строковые:
«abcde», «информатика».

Переменные
– это данные, которые могут изменять
свои значения в ходе выполнения программы.
Они обозначаются именами. Переменные
бывают целые,
вещественные,
логические,
символьные
и строковые.

Массивы
— последовательности однотипных
элементов, число которых фиксировано
и которым присвоено одно имя. Положение
элемента в массиве однозначно определяется
его индексами — одним в случае одномерного
массива, или несколькими, если массив
многомерный.

Выражения
– элементы языка, которые предназначаются
для выполнения необходимых вычислений,
состоят из констант, переменных,
указателей функций, объединенных знаками
операций. Выражения записываются в виде
линейных последовательностей символов
(без подстрочных и надстрочных символов,
«многоэтажных» дробей и т. д.), что
позволяет вводить их в компьютер,
последовательно нажимая на соответствующие
клавиши клавиатуры.

Различают
выражения арифметические,
логические
и строковые.

Арифметические
выражения

служат для определения одного числового
значения. Арифметические выражения
записываются по следующим правилам:

  1. Нельзя
    опускать знак умножения между
    сомножителями и ставить рядом два знака
    операций.

  2. Индексы
    элементов массивов записываются в
    скобках.

  3. Операции
    выполняются в порядке старшинства:
    сначала вычисление функций, затем
    возведение в степень, потом умножение
    и деление и в последнюю очередь — сложение
    и вычитание.

  4. Операции
    одного старшинства выполняются слева
    направо.

Логические
выражения

описывают некоторые условия, которые
могут удовлетворяться или не
удовлетворяться. Таким образом, логическое
выражение может принимать только два
значения — «истина» или «ложь»
(да или нет).

В
записи логических выражений помимо
арифметических операций сложения,
вычитания, умножения, деления и возведения
в степень используются операции отношения
и логические операции.

Значения
строковых
выражений

— тексты. В них могут входить строковые
константы, строковые переменные и
строковые функции, разделенные знаком
операции конкатенации.

Оператор
– это элемент языка, который задает
полное описание некоторого действия,
которое необходимо выполнить. Оператор
— это наиболее крупное и содержательное
понятие языка: каждый оператор представляет
собой законченную фразу языка
программирования и определяет некоторый
вполне законченный этап обработки
данных. В состав операторов входят
ключевые слова; данные; выражения и т.д.

Стандартная
функция

– подпрограмма, заранее встроенная в
транслятор языка для вычисления часто
употребляемых функций. В качестве
аргументов функций можно использовать
константы, переменные и выражения.

Программа
— это последовательность инструкций,
предназначенных для выполнения
компьютером. В настоящее время программы
оформляются в виде текста, который
записывается в файлы.

Программирование
– это теоретическая и практическая
деятельность решения задачи средствами
конкретного языка программирования и
оформления полученных результатов в
виде программы.

На
стадии программирования возникает этап
отладки программы – процесс обнаружения
и устранения ошибок в программе,
производимой по результатам ее
тестирования на компьютере.

После
окончательной отладки программа
документируется, т.е. к ней прилагается
описание назначения программы и
инструкция по эксплуатации. Только
после этого программа становится
законченным программным продуктом,
подготовленным к реализации как любой
иной вид промышленной продукции.

Языки
высокого уровня работают через
трансляционные программы —трансляторы,
которые преобразуют исходный код в
последовательность команд машинного
языка. Существует два основных вида
трансляторов: интерпретаторы,
которые сканируют и проверяют исходный
код в один шаг, и компиляторы,
которые сканируют исходный код для
создания текста программы на машинном
языке, которая затем выполняется
отдельно.

В
общем случае программа может иметь
модульную
структуру,
т.е. состоять из нескольких программных
единиц, связанных между собой командами
передачи управления. Такой принцип
построения программ называется модульным.
Программная единица, с первой команды
которой начинается выполнение программы,
называется головной программой. Остальные
программные единицы, входящие в единую
программу, называются подпрограммами.

Подпрограмма
— это последовательность операторов,
которые определены и записаны только
в одном месте программы, однако их можно
вызвать для выполнения из одной или
нескольких точек программы.

Функция
— это программная единица, которая может
быть употреблена в выражении. Функция
прямо возвращает величину, которая
используется при вычислении этого
выражения, и, кроме того, может возвращать
величины через параметры.

Процесс
разработки многомодульных программ
эффективнее, особенно если разрабатывается
программа большого размера, когда над
реализацией проекта может работать
несколько программистов, каждый из
которых имеет возможность модифицировать
фрагменты программы, не мешая работе
остальных.

Подпрограммы
и функции позволяют создавать большие
структурированные программы, которые
можно делить на части. Это дает преимущества
в следующих ситуациях:

  1. Если
    программа большая, разделение ее на
    части облегчает создание, тестирование
    и ее сборку.

  2. Если
    программа большая и повторная компиляция
    всего исходного текста занимает много
    времени, разделение ее на части экономит
    время компиляции.

  3. Если
    процедуру надо использовать в разных
    случаях разным образом, можно записать
    ее в отдельный файл и скомпилировать
    отдельно.

Инструментальные
системы программирования

Для
популярных языков программирования на
ЭВМ существует множество систем
программирования. Программисты
предпочитают те системы, которые легки
в использовании, позволяют получить
эффективные программы, имеют богатые
библиотеки функций (подпрограмм) и
мощные возможности для отладки
разрабатываемых программ. В качестве
примеров таких систем программирования
можно назвать Delphi, Visual C++, Visual Basic.

Системы
программирования прежде всего различаются
по тому, какой язык программирования
они реализуют. Среди программистов,
пишущих программы для персональных
компьютеров, наибольшей популярностью
пользуются языки Си, Паскаль и Бейсик.

2010/05/24 13:22:36

Компьютерная программа

Компью́терная програ́мма — последовательность инструкций, предназначенная для исполнения устройством управления вычислительной машины. Чаще всего образ программы хранится в виде исполняемого модуля (отдельного файла или группы файлов). Из этого образа, находящегося как правило на диске, исполняемая программа в оперативной памяти может быть построена программным загрузчиком. В зависимости от контекста, рассматриваемый термин может относиться также и к исходным текстам программы.

Закон РФ «О защите программ»

В Законах РФ «О защите программ и баз данных для ЭВМ» и «Законе об авторских и смежных правах» дано следующее определение компьютерных программ:

Программа для ЭВМ — это совокупность команд и данных, предназначенных для определенного функционирования ЭВМ.

В системном программировании существует более формальное определениеШаблон:Источник? программы как размещённых в оперативной памяти компьютера данных и машинных кодов, исполняемых процессором для достижения некоторой цели. Здесь подчеркиваются две особенности: нахождение программы в памяти и её исполнение процессором.

Ошибки в программах для ЭВМ

Программы для ЭВМ содержат ошибки, если при их выполнении ЭВМ возникают сбои, отказы либо неправильные результаты.

Количество ошибок в программах обычно неизвестно. Процесс поиска и исправления ошибок называется отладкой программ на ЭВМ.

Продолжительность отладки программ на ЭВМ заранее неизвестна. После нахождения ошибки в программе следует искать следующую ошибку и так далее.

Отсутствие ошибок в программах могут дать только доказательства (Э.Дейкстра, Дисциплина программирования.)

Программирование

Процесс создания компьютерных программ носит название программирование, а людей, занимающихся этим видом деятельности, называют программистами либо разработчиками программ для ЭВМ. Людей, занимающихся отладкой программ на ЭВМ путем тестирования называют тестировщиками.

Запись исходных текстов программ при помощи языков программирования удобна для понимания и редактирования человеком. Этому, в частности, помогают комментарии, допустимые в синтаксисе большинства языков. Для выполнения на компьютере готовый текст программы преобразуется (компилируется) в машинный код.

Языки программирования

Некоторые языки программирования позволяют обходиться без предварительной компиляции программы и переводят её в инструкции машинного кода непосредственно во время исполнения. Этот процесс называется динамической компиляцией и он позволяет добиться большей переносимости программ между разными аппаратными и программными платформами при сохранении многих плюсов компиляции.

Интерпретация программ

Интерпретируемые программы, для которых как правило не применяется процесс компиляции и которые интерпретируются операционный системой или специальными программами-интерпретаторами, называются скриптами или «сценариями».

Исходные тексты компьютерных программ в большинстве языков программирования состоят из списка инструкций, точно описывающих заложенный алгоритм. Подобный подход в программировании называется императивным. Однако применяются и другие методологии программирования. Например, описание исходных и требуемых характеристик обрабатываемых данных и предоставление выбора подходящего алгоритма решения специализированной программе-интерпретатору — такой подход называется декларативным программированием. Также, применяются функциональное и логическое программирование.

Пользователи программ

Большинство пользователей компьютеров используют программы, предназначенные для выполнения конкретных прикладных задач, таких как подготовка и оформление документов, математические вычисления, обработка изображений и т. п. Соответствующие программные средства называют прикладными программами или прикладным программным обеспечением. Управление компонентами вычислительной системы и формирование среды для функционирования прикладных программ берёт на себя системное программное обеспечение, наиболее важной составляющей которого является операционная система.

Защита прав потребителей

Пользователи программ для ЭВМ согласно Закону РФ «О защите прав потребителей» имеют общегражданские права на защиту своих прав при обнаружении дефектов в программах на ЭВМ — права на замену программ без дефектов либо на возврат денег за приобретение дефектной продукции.

Дефектами программ для ЭВМ являются сбои, отказы и ошибки в работе программ, зафиксированные протокольно на твердом носителе или на бумажном носителе либо на компакт-дисках с тестовыми примерами и тестовыми программами с предоставлением корий платежных документов и копий документов и лицензий с гарантиями качества и процедурами обмена дефектной продукции.

Литература

  1. Дейкстра Э. Дисциплина программирования. М.: Мир, 1978.
  2. Соммервил Дж. Програмная инженерия. М.: Мир, 2004.
  3. Каймин В.А. Методы разработки программ на языках высокого уровня. М.: МИЭМ, 1985.
  4. Каймин В.А. Основы доказательного программирования. М.: МИЭМ, 1987.
  5. Каймин В.А. Информатика. Учебник для студентов вузов. М.: ИНФРА-М, 1999-2009.
  6. Каймин В.А. Информатика. Учебник для школьников. М.: Прогресс, 2009.

Интернет-ссылки

  • Технологии Доказательного Программирования
  • информатика в Школах и Вузах

Транслятор и компоновщик

Программа — это последовательность инструкций, предназначенных для выполнения компьютером. В настоящее время программы оформляются в виде текста, который записывается в файлы. Этот текст является результатом деятельности программиста и, несмотря на специфику формального языка, остаётся программой для программиста.

Процесс создания программы предполагает несколько этапов. За этапом разработки проекта программы следует этап программирования. На этом этапе пишется программа. Программистами этот текст воспринимается легче двоичного кода, поскольку различные мнемонические сокращения и имена заключают дополнительную информацию.

Файл с исходным текстом программы (его также называют исходным модулем) обрабатывается транслятором, который осуществляет перевод программы с языка программирования в понятную машине последовательность кодов. Процесс трансляции разделяется на несколько этапов.

На первом этапе исходный текст (он обычно хранится в виде текстового файла) подвергается лексической обработке. Программа разделяется на предложения, предложение делится на элементарные составляющие (лексемы). Каждая лексема распознаётся (имя, ключевое слово, литерал, символ операции или разделитель) и преобразуется в соответствующее двоичное представление. Этот этап работы транслятора называют лексическим анализом.

Затем наступает этап синтаксического анализа. На этом этапе из лексем собираются выражения, а из выражений — операторы. В ходе трансляции последовательности терминальных символов преобразуются в нетерминалы. Невозможность достижения очередного нетерминала является признаком синтаксической ошибки в тексте исходной программы.

После синтаксического анализа наступает этап поэтапной генерации кода. На этом этапе происходит замена операторов языка высокого уровня инструкциями ассемблера, а затем последовательностями машинных команд. Результат преобразования исходного текста программы записывается в виде двоичного файла (его называют объектным модулем) с расширением «.obj».

Системы программирования, реализующие язык программирования C++, предусматривают стандартные приёмы и средства, которые делают процесс программирования более технологичным, а саму программу более лёгкой для восприятия.

К числу таких средств относится система поддержки многомодульных программ, которые строятся из отдельных фрагментов. Модули располагаются в различных файлах, часть из которых может быть независимо от других обработана транслятором. На этапе сборки часть модулей может быть собрана в так называемые загрузочные модули, которые и выполняются процессором.

Процесс разработки многомодульных программ эффективнее, особенно если разрабатывается программа большого размера, когда над реализацией проекта может работать несколько программистов, каждый из которых имеет возможность модифицировать фрагменты программы, не мешая работе остальных.

В C++ не существует специальных языковых конструкций, которые непосредственно в программе описывали бы общую структуру многомодульной программы. Обычно структура программы описывается специальными неязыковыми средствами и зависит от конкретной реализации системы программирования. Межмодульные связи поддерживаются специальными файлами проектов, в которых и фиксируется вся необходимая для создания многомодульной программы информация.

Объектный модуль можно выполнять лишь после специальной дополнительной обработки (компоновки), которая осуществляется специальной программой-компоновщиком.

Рассмотрим в общих чертах процесс компоновки. Программа строится из инструкций и операторов. В свою очередь, операторы включают выражения, которые состоят из операций и операндов. По крайней мере, части операндов в выражениях должны соответствовать отдельные «участки» оперативной памяти, предназначаемые, например, для сохранения результатов вычислений.

В ходе трансляции устанавливается соответствие между операндами и адресами областей памяти вычислительной машины. Так вот задача компоновщика состоит в согласовании адресов во всех фрагментах кода, из которых собирается готовая к выполнению программа. Компоновщик отвечает за то, чтобы конкретному операнду выражения соответствовала определённая область памяти.

Компоновщик также добавляет к компонуемой программе коды так называемых библиотечных функций (они обеспечивают выполнение конкретных действий — вычисления, вывод информации на экран дисплея и т.д.), а также код, обеспечивающий размещение программы в памяти, её корректное начало и завершение.

Преобразованная компоновщиком программа называется загрузочным или выполнимым модулем. Файлы, содержащие загрузочные модули, называют загрузочными или выполнимыми файлами.

Назад |
Содержание |
Вперед

2010/05/24 13:22:36

Компьютерная программа

Компью́терная програ́мма — последовательность инструкций, предназначенная для исполнения устройством управления вычислительной машины. Чаще всего образ программы хранится в виде исполняемого модуля (отдельного файла или группы файлов). Из этого образа, находящегося как правило на диске, исполняемая программа в оперативной памяти может быть построена программным загрузчиком. В зависимости от контекста, рассматриваемый термин может относиться также и к исходным текстам программы.

Закон РФ «О защите программ»

В Законах РФ «О защите программ и баз данных для ЭВМ» и «Законе об авторских и смежных правах» дано следующее определение компьютерных программ:

Программа для ЭВМ — это совокупность команд и данных, предназначенных для определенного функционирования ЭВМ.

В системном программировании существует более формальное определениеШаблон:Источник? программы как размещённых в оперативной памяти компьютера данных и машинных кодов, исполняемых процессором для достижения некоторой цели. Здесь подчеркиваются две особенности: нахождение программы в памяти и её исполнение процессором.

Ошибки в программах для ЭВМ

Программы для ЭВМ содержат ошибки, если при их выполнении ЭВМ возникают сбои, отказы либо неправильные результаты.

Количество ошибок в программах обычно неизвестно. Процесс поиска и исправления ошибок называется отладкой программ на ЭВМ.

Продолжительность отладки программ на ЭВМ заранее неизвестна. После нахождения ошибки в программе следует искать следующую ошибку и так далее.

Отсутствие ошибок в программах могут дать только доказательства (Э.Дейкстра, Дисциплина программирования.)

Программирование

Процесс создания компьютерных программ носит название программирование, а людей, занимающихся этим видом деятельности, называют программистами либо разработчиками программ для ЭВМ. Людей, занимающихся отладкой программ на ЭВМ путем тестирования называют тестировщиками.

Запись исходных текстов программ при помощи языков программирования удобна для понимания и редактирования человеком. Этому, в частности, помогают комментарии, допустимые в синтаксисе большинства языков. Для выполнения на компьютере готовый текст программы преобразуется (компилируется) в машинный код.

Языки программирования

Некоторые языки программирования позволяют обходиться без предварительной компиляции программы и переводят её в инструкции машинного кода непосредственно во время исполнения. Этот процесс называется динамической компиляцией и он позволяет добиться большей переносимости программ между разными аппаратными и программными платформами при сохранении многих плюсов компиляции.

Интерпретация программ

Интерпретируемые программы, для которых как правило не применяется процесс компиляции и которые интерпретируются операционный системой или специальными программами-интерпретаторами, называются скриптами или «сценариями».

Исходные тексты компьютерных программ в большинстве языков программирования состоят из списка инструкций, точно описывающих заложенный алгоритм. Подобный подход в программировании называется императивным. Однако применяются и другие методологии программирования. Например, описание исходных и требуемых характеристик обрабатываемых данных и предоставление выбора подходящего алгоритма решения специализированной программе-интерпретатору — такой подход называется декларативным программированием. Также, применяются функциональное и логическое программирование.

Пользователи программ

Большинство пользователей компьютеров используют программы, предназначенные для выполнения конкретных прикладных задач, таких как подготовка и оформление документов, математические вычисления, обработка изображений и т. п. Соответствующие программные средства называют прикладными программами или прикладным программным обеспечением. Управление компонентами вычислительной системы и формирование среды для функционирования прикладных программ берёт на себя системное программное обеспечение, наиболее важной составляющей которого является операционная система.

Защита прав потребителей

Пользователи программ для ЭВМ согласно Закону РФ «О защите прав потребителей» имеют общегражданские права на защиту своих прав при обнаружении дефектов в программах на ЭВМ — права на замену программ без дефектов либо на возврат денег за приобретение дефектной продукции.

Дефектами программ для ЭВМ являются сбои, отказы и ошибки в работе программ, зафиксированные протокольно на твердом носителе или на бумажном носителе либо на компакт-дисках с тестовыми примерами и тестовыми программами с предоставлением корий платежных документов и копий документов и лицензий с гарантиями качества и процедурами обмена дефектной продукции.

Литература

  1. Дейкстра Э. Дисциплина программирования. М.: Мир, 1978.
  2. Соммервил Дж. Програмная инженерия. М.: Мир, 2004.
  3. Каймин В.А. Методы разработки программ на языках высокого уровня. М.: МИЭМ, 1985.
  4. Каймин В.А. Основы доказательного программирования. М.: МИЭМ, 1987.
  5. Каймин В.А. Информатика. Учебник для студентов вузов. М.: ИНФРА-М, 1999-2009.
  6. Каймин В.А. Информатика. Учебник для школьников. М.: Прогресс, 2009.

Интернет-ссылки

  • Технологии Доказательного Программирования
  • информатика в Школах и Вузах

Source code for a computer program written in the HTML and JavaScript languages

A computer program is a sequence or set of instructions in a programming language for a computer to execute. It is one component of software, which also includes documentation and other intangible components.[1]

A computer program in its human-readable form is called source code. Source code needs another computer program to execute because computers can only execute their native machine instructions. Therefore, source code may be translated to machine instructions using the language’s compiler. (Assembly language programs are translated using an assembler.) The resulting file is called an executable. Alternatively, source code may execute within the language’s interpreter.[2]

If the executable is requested for execution, then the operating system loads it into memory and starts a process.[3] The central processing unit will soon switch to this process so it can fetch, decode, and then execute each machine instruction.[4]

If the source code is requested for execution, then the operating system loads the corresponding interpreter into memory and starts a process. The interpreter then loads the source code into memory to translate and execute each statement.[2] Running the source code is slower than running an executable.[a] Moreover, the interpreter must be installed on the computer.

Example computer program[edit]

«Hello, World!» program by Brian Kernighan (1978)

The «Hello, World!» program is used to illustrate a language’s basic syntax. The syntax of the language BASIC (1964) was intentionally limited to make the language easy to learn.[5] For example, variables are not declared before being used.[6] Also, variables are automatically initialized to zero.[6] Here is an example computer program, in Basic, to average a list of numbers:[7]

10 INPUT "How many numbers to average?", A
20 FOR I = 1 TO A
30 INPUT "Enter number:", B
40 LET C = C + B
50 NEXT I
60 LET D = C/A
70 PRINT "The average is", D
80 END

Once the mechanics of basic computer programming are learned, more sophisticated and powerful languages are available to build large computer systems.[8]

History[edit]

Improvements in software development are the result of improvements in computer hardware. At each stage in hardware’s history, the task of computer programming changed dramatically.

Analytical Engine[edit]

Lovelace’s description from Note G

In 1837, Jacquard’s loom inspired Charles Babbage to attempt to build the Analytical Engine.[9]
The names of the components of the calculating device were borrowed from the textile industry. In the textile industry, yarn was brought from the store to be milled. The device had a «store» which consisted of memory to hold 1,000 numbers of 50 decimal digits each.[10] Numbers from the «store» were transferred to the «mill» for processing. It was programmed using two sets of perforated cards. One set directed the operation and the other set inputted the variables.[9][11] However, the thousands of cogged wheels and gears never fully worked together, even after Babbage spent more than £17,000 of government money.[12]

Ada Lovelace worked for Charles Babbage to create a description of the Analytical Engine (1843).[13] The description contained Note G which completely detailed a method for calculating Bernoulli numbers using the Analytical Engine. This note is recognized by some historians as the world’s first computer program.[12]

Universal Turing machine[edit]

In 1936, Alan Turing introduced the Universal Turing machine, a theoretical device that can model every computation.[14]
It is a finite-state machine that has an infinitely long read/write tape. The machine can move the tape back and forth, changing its contents as it performs an algorithm. The machine starts in the initial state, goes through a sequence of steps, and halts when it encounters the halt state.[15] All present-day computers are Turing complete.[16]

ENIAC[edit]

Glenn A. Beck changing a tube in ENIAC

The Electronic Numerical Integrator And Computer (ENIAC) was built between July 1943 and Fall 1945. It was a Turing complete, general-purpose computer that used 17,468 vacuum tubes to create the circuits. At its core, it was a series of Pascalines wired together.[17] Its 40 units weighed 30 tons, occupied 1,800 square feet (167 m2), and consumed $650 per hour (in 1940s currency) in electricity when idle.[17] It had 20 base-10 accumulators. Programming the ENIAC took up to two months.[17] Three function tables were on wheels and needed to be rolled to fixed function panels. Function tables were connected to function panels by plugging heavy black cables into plugboards. Each function table had 728 rotating knobs. Programming the ENIAC also involved setting some of the 3,000 switches. Debugging a program took a week.[18] It ran from 1947 until 1955 at Aberdeen Proving Ground, calculating hydrogen bomb parameters, predicting weather patterns, and producing firing tables to aim artillery guns.[19]

Stored-program computers[edit]

Instead of plugging in cords and turning switches, a stored-program computer loads its instructions into memory just like it loads its data into memory.[20] As a result, the computer could be programmed quickly and perform calculations at very fast speeds.[21] Presper Eckert and John Mauchly built the ENIAC. The two engineers introduced the stored-program concept in a three-page memo dated February 1944.[22] Later, in September 1944, Dr. John von Neumann began working on the ENIAC project. On June 30, 1945, von Neumann published the First Draft of a Report on the EDVAC, which equated the structures of the computer with the structures of the human brain.[21] The design became known as the von Neumann architecture. The architecture was simultaneously deployed in the constructions of the EDVAC and EDSAC computers in 1949.[23]

The IBM System/360 (1964) was a family of computers, each having the same instruction set architecture. The Model 20 was the smallest and least expensive. Customers could upgrade and retain the same application software.[24] The Model 195 was the most premium. Each System/360 model featured multiprogramming[24]—having multiple processes in memory at once. When one process was waiting for input/output, another could compute.

IBM planned for each model to be programmed using PL/1.[25] A committee was formed that included COBOL, Fortran and ALGOL programmers. The purpose was to develop a language that was comprehensive, easy to use, extendible, and would replace Cobol and Fortran.[25] The result was a large and complex language that took a long time to compile.[26]

Switches for manual input on a Data General Nova 3, manufactured in the mid-1970s

Computers manufactured until the 1970s had front-panel switches for manual programming.[27] The computer program was written on paper for reference. An instruction was represented by a configuration of on/off settings. After setting the configuration, an execute button was pressed. This process was then repeated. Computer programs also were automatically inputted via paper tape, punched cards or magnetic-tape. After the medium was loaded, the starting address was set via switches, and the execute button was pressed.[27]

Very Large Scale Integration[edit]

A VLSI integrated-circuit die

A major milestone in software development was the invention of the Very Large Scale Integration (VLSI) circuit (1964).[28] Following World War II, tube-based technology was replaced with point-contact transistors (1947) and bipolar junction transistors (late 1950s) mounted on a circuit board.[28] During the 1960s, the aerospace industry replaced the circuit board with an integrated circuit chip.[28]

Robert Noyce, co-founder of Fairchild Semiconductor (1957) and Intel (1968), achieved a technological improvement to refine the production of field-effect transistors (1963).[29] The goal is to alter the electrical resistivity and conductivity of a semiconductor junction. First, naturally occurring silicate minerals are converted into polysilicon rods using the Siemens process.[30] The Czochralski process then converts the rods into a monocrystalline silicon, boule crystal.[31] The crystal is then thinly sliced to form a wafer substrate. The planar process of photolithography then integrates unipolar transistors, capacitors, diodes, and resistors onto the wafer to build a matrix of metal–oxide–semiconductor (MOS) transistors.[32][33] The MOS transistor is the primary component in integrated circuit chips.[29]

Originally, integrated circuit chips had their function set during manufacturing. During the 1960s, controlling the electrical flow migrated to programming a matrix of read-only memory (ROM). The matrix resembled a two-dimensional array of fuses.[28] The process to embed instructions onto the matrix was to burn out the unneeded connections.[28] There were so many connections, firmware programmers wrote a computer program on another chip to oversee the burning.[28] The technology became known as Programmable ROM. In 1971, Intel installed the computer program onto the chip and named it the Intel 4004 microprocessor.[34]

IBM’s System/360 (1964) CPU was not a microprocessor.

The terms microprocessor and central processing unit (CPU) are now used interchangeably. However, CPUs predate microprocessors. For example, the IBM System/360 (1964) had a CPU made from circuit boards containing discrete components on ceramic substrates.[35]

Sac State 8008[edit]

Artist’s depiction of Sacramento State University’s Intel 8008 microcomputer (1972)

The Intel 4004 (1971) was a 4-bit microprocessor designed to run the Busicom calculator. Five months after its release, Intel released the Intel 8008, an 8-bit microprocessor. Bill Pentz led a team at Sacramento State to build the first microcomputer using the Intel 8008: the Sac State 8008 (1972).[36] Its purpose was to store patient medical records. The computer supported a disk operating system to run a Memorex, 3-megabyte, hard disk drive.[28] It had a color display and keyboard that was packaged in a single console. The disk operating system was programmed using IBM’s Basic Assembly Language (BAL). The medical records application was programmed using a BASIC interpreter.[28] However, the computer was an evolutionary dead-end because it was extremely expensive. Also, it was built at a public university lab for a specific purpose.[36] Nonetheless, the project contributed to the development of the Intel 8080 (1974) instruction set.[28]

x86 series[edit]

The original IBM Personal Computer (1981) used an Intel 8088 microprocessor.

In 1978, the modern software development environment began when Intel upgraded the Intel 8080 to the Intel 8086. Intel simplified the Intel 8086 to manufacture the cheaper Intel 8088.[37] IBM embraced the Intel 8088 when they entered the personal computer market (1981). As consumer demand for personal computers increased, so did Intel’s microprocessor development. The succession of development is known as the x86 series. The x86 assembly language is a family of backward-compatible machine instructions. Machine instructions created in earlier microprocessors were retained throughout microprocessor upgrades. This enabled consumers to purchase new computers without having to purchase new application software. The major categories of instructions are:[b]

  • Memory instructions to set and access numbers and strings in random-access memory.
  • Integer arithmetic logic unit (ALU) instructions to perform the primary arithmetic operations on integers.
  • Floating point ALU instructions to perform the primary arithmetic operations on real numbers.
  • Call stack instructions to push and pop words needed to allocate memory and interface with functions.
  • Single instruction, multiple data (SIMD) instructions[c] to increase speed when multiple processors are available to perform the same algorithm on an array of data.

Changing programming environment[edit]

The DEC VT100 (1978) was a widely used computer terminal.

VLSI circuits enabled the programming environment to advance from a computer terminal (until the 1990s) to a graphical user interface (GUI) computer. Computer terminals limited programmers to a single shell running in a command-line environment. During the 1970s, full-screen source code editing became possible through a text-based user interface. Regardless of the technology available, the goal is to program in a programming language.

Programming paradigms and languages[edit]

Programming language features exist to provide building blocks to be combined to express programming ideals.[38] Ideally, a programming language should:[38]

  • express ideas directly in the code.
  • express independent ideas independently.
  • express relationships among ideas directly in the code.
  • combine ideas freely.
  • combine ideas only where combinations make sense.
  • express simple ideas simply.

The programming style of a programming language to provide these building blocks may be categorized into programming paradigms.[39] For example, different paradigms may differentiate:[39]

  • procedural languages, functional languages, and logical languages.
  • different levels of data abstraction.
  • different levels of class hierarchy.
  • different levels of input datatypes, as in container types and generic programming.

Each of these programming styles has contributed to the synthesis of different programming languages.[39]

A programming language is a set of keywords, symbols, identifiers, and rules by which programmers can communicate instructions to the computer.[40] They follow a set of rules called a syntax.[40]

  • Keywords are reserved words to form declarations and statements.
  • Symbols are characters to form operations, assignments, control flow, and delimiters.
  • Identifiers are words created by programmers to form constants, variable names, structure names, and function names.
  • Syntax Rules are defined in the Backus–Naur form.

Programming languages get their basis from formal languages.[41] The purpose of defining a solution in terms of its formal language is to generate an algorithm to solve the underlining problem.[41] An algorithm is a sequence of simple instructions that solve a problem.[42]

Generations of programming language[edit]

The evolution of programming language began when the EDSAC (1949) used the first stored computer program in its von Neumann architecture.[43] Programming the EDSAC was in the first generation of programming language.

  • The first generation of programming language is machine language.[44] Machine language requires the programmer to enter instructions using instruction numbers called machine code. For example, the ADD operation on the PDP-11 has instruction number 24576.[45]
  • The second generation of programming language is assembly language.[44] Assembly language allows the programmer to use mnemonic instructions instead of remembering instruction numbers. An assembler translates each assembly language mnemonic into its machine language number. For example, on the PDP-11, the operation 24576 can be referenced as ADD in the source code.[45] The four basic arithmetic operations have assembly instructions like ADD, SUB, MUL, and DIV.[45] Computers also have instructions like DW (Define Word) to reserve memory cells. Then the MOV instruction can copy integers between registers and memory.
  • The basic structure of an assembly language statement is a label, operation, operand, and comment.[46]
  • Labels allow the programmer to work with variable names. The assembler will later translate labels into physical memory addresses.
  • Operations allow the programmer to work with mnemonics. The assembler will later translate mnemonics into instruction numbers.
  • Operands tell the assembler which data the operation will process.
  • Comments allow the programmer to articulate a narrative because the instructions alone are vague.
The key characteristic of an assembly language program is it forms a one-to-one mapping to its corresponding machine language target.[47]
  • The third generation of programming language uses compilers and interpreters to execute computer programs. The distinguishing feature of a third generation language is its independence from particular hardware.[48] Early languages include Fortran (1958), COBOL (1959), ALGOL (1960), and BASIC (1964).[44] In 1973, the C programming language emerged as a high-level language that produced efficient machine language instructions.[49] Whereas third-generation languages historically generated many machine instructions for each statement,[50] C has statements that may generate a single machine instruction.[d] Moreover, an optimizing compiler might overrule the programmer and produce fewer machine instructions than statements. Today, an entire paradigm of languages fill the imperative, third generation spectrum.
  • The fourth generation of programming language emphasizes what output results are desired, rather than how programming statements should be constructed.[44] Declarative languages attempt to limit side effects and allow programmers to write code with relatively few errors.[44] One popular fourth generation language is called Structured Query Language (SQL).[44] Database developers no longer need to process each database record one at a time. Also, a simple statement can generate output records without having to understand how they are retrieved.

Imperative languages[edit]

A computer program written in an imperative language

Imperative languages specify a sequential algorithm using declarations, expressions, and statements:[51]

  • A declaration introduces a variable name to the computer program and assigns it to a datatype[52] – for example: var x: integer;
  • An expression yields a value – for example: 2 + 2 yields 4
  • A statement might assign an expression to a variable or use the value of a variable to alter the program’s control flow – for example: x := 2 + 2; if x = 4 then do_something();

Fortran[edit]

FORTRAN (1958) was unveiled as «The IBM Mathematical FORmula TRANslating system.» It was designed for scientific calculations, without string handling facilities. Along with declarations, expressions, and statements, it supported:

  • arrays.
  • subroutines.
  • «do» loops.

It succeeded because:

  • programming and debugging costs were below computer running costs.
  • it was supported by IBM.
  • applications at the time were scientific.[53]

However, non-IBM vendors also wrote Fortran compilers, but with a syntax that would likely fail IBM’s compiler.[53] The American National Standards Institute (ANSI) developed the first Fortran standard in 1966. In 1978, Fortran 77 became the standard until 1991. Fortran 90 supports:

  • records.
  • pointers to arrays.

COBOL[edit]

COBOL (1959) stands for «COmmon Business Oriented Language.» Fortran manipulated symbols. It was soon realized that symbols did not need to be numbers, so strings were introduced.[54] The US Department of Defense influenced COBOL’s development, with Grace Hopper being a major contributor. The statements were English-like and verbose. The goal was to design a language so managers could read the programs. However, the lack of structured statements hindered this goal.[55]

COBOL’s development was tightly controlled, so dialects did not emerge to require ANSI standards. As a consequence, it was not changed for 15 years until 1974. The 1990s version did make consequential changes, like object-oriented programming.[55]

Algol[edit]

ALGOL (1960) stands for «ALGOrithmic Language.» It had a profound influence on programming language design.[56] Emerging from a committee of European and American programming language experts, it used standard mathematical notation and had a readable, structured design. Algol was first to define its syntax using the Backus–Naur form.[56] This led to syntax-directed compilers. It added features like:

  • block structure, where variables were local to their block.
  • arrays with variable bounds.
  • «for» loops.
  • functions.
  • recursion.[56]

Algol’s direct descendants include Pascal, Modula-2, Ada, Delphi and Oberon on one branch. On another branch the descendants include C, C++ and Java.[56]

Basic[edit]

BASIC (1964) stands for «Beginner’s All-Purpose Symbolic Instruction Code.» It was developed at Dartmouth College for all of their students to learn.[7] If a student did not go on to a more powerful language, the student would still remember Basic.[7] A Basic interpreter was installed in the microcomputers manufactured in the late 1970s. As the microcomputer industry grew, so did the language.[7]

Basic pioneered the interactive session.[7] It offered operating system commands within its environment:

  • The ‘new’ command created an empty slate.
  • Statements evaluated immediately.
  • Statements could be programmed by preceding them with a line number.
  • The ‘list’ command displayed the program.
  • The ‘run’ command executed the program.

However, the Basic syntax was too simple for large programs.[7] Recent dialects added structure and object-oriented extensions. Microsoft’s Visual Basic is still widely used and produces a graphical user interface.[6]

C[edit]

C programming language (1973) got its name because the language BCPL was replaced with B, and AT&T Bell Labs called the next version «C.» Its purpose was to write the UNIX operating system.[49] C is a relatively small language, making it easy to write compilers. Its growth mirrored the hardware growth in the 1980s.[49] Its growth also was because it has the facilities of assembly language, but uses a high-level syntax. It added advanced features like:

  • inline assembler.
  • arithmetic on pointers.
  • pointers to functions.
  • bit operations.
  • freely combining complex operators.[49]

Computer memory map

C allows the programmer to control which region of memory data is to be stored. Global variables and static variables require the fewest clock cycles to store. The stack is automatically used for the standard variable declarations. Heap memory is returned to a pointer variable from the malloc() function.

  • The global and static data region is located just above the program region. (The program region is technically called the text region. It’s where machine instructions are stored.)
  • The global and static data region is technically two regions.[57] One region is called the initialized data segment, where variables declared with default values are stored. The other region is called the block started by segment, where variables declared without default values are stored.
  • Variables stored in the global and static data region have their addresses set at compile-time. They retain their values throughout the life of the process.
  • The global and static region stores the global variables that are declared on top of (outside) the main() function.[58] Global variables are visible to main() and every other function in the source code.
On the other hand, variable declarations inside of main(), other functions, or within { } block delimiters are local variables. Local variables also include formal parameter variables. Parameter variables are enclosed within the parenthesis of function definitions.[59] They provide an interface to the function.
  • Local variables declared using the static prefix are also stored in the global and static data region.[57] Unlike global variables, static variables are only visible within the function or block. Static variables always retain their value. An example usage would be the function int increment_counter(){static int counter = 0; counter++; return counter;}[e]
  • The stack region is a contiguous block of memory located near the top memory address.[60] Variables placed in the stack are populated from top to bottom.[f][60] A stack pointer is a special-purpose register that keeps track of the last memory address populated.[60] Variables are placed into the stack via the assembly language PUSH instruction. Therefore, the addresses of these variables are set during runtime. The method for stack variables to lose their scope is via the POP instruction.
  • Local variables declared without the static prefix, including formal parameter variables,[61] are called automatic variables[58] and are stored in the stack.[57] They are visible inside the function or block and lose their scope upon exiting the function or block.
  • The heap region is located below the stack.[57] It is populated from the bottom to the top. The operating system manages the heap using a heap pointer and a list of allocated memory blocks.[62] Like the stack, the addresses of heap variables are set during runtime. An out of memory error occurs when the heap pointer and the stack pointer meet.
  • C provides the malloc() library function to allocate heap memory.[63] Populating the heap with data is an additional copy function. Variables stored in the heap are economically passed to functions using pointers. Without pointers, the entire block of data would have to be passed to the function via the stack.

C++[edit]

In the 1970s, software engineers needed language support to break large projects down into modules.[64] One obvious feature was to decompose large projects physically into separate files. A less obvious feature was to decompose large projects logically into abstract data types.[64] At the time, languages supported concrete (scalar) datatypes like integer numbers, floating-point numbers, and strings of characters. Abstract datatypes are structures of concrete datatypes, with a new name assigned. For example, a list of integers could be called integer_list.

In object-oriented jargon, abstract datatypes are called classes. However, a class is only a definition; no memory is allocated. When memory is allocated to a class and bound to an identifier, it’s called an object.[65]

Object-oriented imperative languages developed by combining the need for classes and the need for safe functional programming.[66] A function, in an object-oriented language, is assigned to a class. An assigned function is then referred to as a method, member function, or operation. Object-oriented programming is executing operations on objects.[67]

Object-oriented languages support a syntax to model subset/superset relationships. In set theory, an element of a subset inherits all the attributes contained in the superset. For example, a student is a person. Therefore, the set of students is a subset of the set of persons. As a result, students inherit all the attributes common to all persons. Additionally, students have unique attributes that other people do not have. Object-oriented languages model subset/superset relationships using inheritance.[68] Object-oriented programming became the dominant language paradigm by the late 1990s.[64]

C++ (1985) was originally called «C with Classes.»[69] It was designed to expand C’s capabilities by adding the object-oriented facilities of the language Simula.[70]

An object-oriented module is composed of two files. The definitions file is called the header file. Here is a C++ header file for the GRADE class in a simple school application:

// grade.h
// -------

// Used to allow multiple source files to include
// this header file without duplication errors.
// ----------------------------------------------
#ifndef GRADE_H
#define GRADE_H

class GRADE {
public:
    // This is the constructor operation.
    // ----------------------------------
    GRADE ( const char letter );

    // This is a class variable.
    // -------------------------
    char letter;

    // This is a member operation.
    // ---------------------------
    int grade_numeric( const char letter );

    // This is a class variable.
    // -------------------------
    int numeric;
};
#endif

A constructor operation is a function with the same name as the class name.[71] It is executed when the calling operation executes the new statement.

A module’s other file is the source file. Here is a C++ source file for the GRADE class in a simple school application:

// grade.cpp
// ---------
#include "grade.h"

GRADE::GRADE( const char letter )
{
    // Reference the object using the keyword 'this'.
    // ----------------------------------------------
    this->letter = letter;

    // This is Temporal Cohesion
    // -------------------------
    this->numeric = grade_numeric( letter );
}

int GRADE::grade_numeric( const char letter )
{
    if ( ( letter == 'A' || letter == 'a' ) )
        return 4;
    else
    if ( ( letter == 'B' || letter == 'b' ) )
        return 3;
    else
    if ( ( letter == 'C' || letter == 'c' ) )
        return 2;
    else
    if ( ( letter == 'D' || letter == 'd' ) )
        return 1;
    else
    if ( ( letter == 'F' || letter == 'f' ) )
        return 0;
    else
        return -1;
}

Here is a C++ header file for the PERSON class in a simple school application:

// person.h
// --------
#ifndef PERSON_H
#define PERSON_H

class PERSON {
public:
    PERSON ( const char *name );
    const char *name;
};
#endif

Here is a C++ source file for the PERSON class in a simple school application:

// person.cpp
// ----------
#include "person.h"

PERSON::PERSON ( const char *name )
{
    this->name = name;
}

Here is a C++ header file for the STUDENT class in a simple school application:

// student.h
// ---------
#ifndef STUDENT_H
#define STUDENT_H

#include "person.h"
#include "grade.h"

// A STUDENT is a subset of PERSON.
// --------------------------------
class STUDENT : public PERSON{
public:
    STUDENT ( const char *name );
    GRADE *grade;
};
#endif

Here is a C++ source file for the STUDENT class in a simple school application:

// student.cpp
// -----------
#include "student.h"
#include "person.h"

STUDENT::STUDENT ( const char *name ):
    // Execute the constructor of the PERSON superclass.
    // -------------------------------------------------
    PERSON( name )
{
    // Nothing else to do.
    // -------------------
}

Here is a driver program for demonstration:

// student_dvr.cpp
// ---------------
#include <iostream>
#include "student.h"

int main( void )
{
    STUDENT *student = new STUDENT( "The Student" );
    student->grade = new GRADE( 'a' );

    std::cout 
        // Notice student inherits PERSON's name
        << student->name
        << ": Numeric grade = "
        << student->grade->numeric
        << "\n";
	return 0;
}

Here is a makefile to compile everything:

# makefile
# --------
all: student_dvr

clean:
    rm student_dvr *.o

student_dvr: student_dvr.cpp grade.o student.o person.o
    c++ student_dvr.cpp grade.o student.o person.o -o student_dvr

grade.o: grade.cpp grade.h
    c++ -c grade.cpp

student.o: student.cpp student.h
    c++ -c student.cpp

person.o: person.cpp person.h
    c++ -c person.cpp

Declarative languages[edit]

Imperative languages have one major criticism: assigning an expression to a non-local variable may produce an unintended side effect.[72] Declarative languages generally omit the assignment statement and the control flow. They describe what computation should be performed and not how to compute it. Two broad categories of declarative languages are functional languages and logical languages.

The principle behind a functional language is to use lambda calculus as a guide for a well defined semantic.[73] In mathematics, a function is a rule that maps elements from an expression to a range of values. Consider the function:

times_10(x) = 10 * x

The expression 10 * x is mapped by the function times_10() to a range of values. One value happens to be 20. This occurs when x is 2. So, the application of the function is mathematically written as:

times_10(2) = 20

A functional language compiler will not store this value in a variable. Instead, it will push the value onto the computer’s stack before setting the program counter back to the calling function. The calling function will then pop the value from the stack.[74]

Imperative languages do support functions. Therefore, functional programming can be achieved in an imperative language, if the programmer uses discipline. However, a functional language will force this discipline onto the programmer through its syntax. Functional languages have a syntax tailored to emphasize the what.[75]

A functional program is developed with a set of primitive functions followed by a single driver function.[72] Consider the snippet:

function max(a,b){/* code omitted */}

function min(a,b){/* code omitted */}

function difference_between_largest_and_smallest(a,b,c) {

return max(a,max(b,c)) - min(a, min(b,c));

}

The primitives are max() and min(). The driver function is difference_between_largest_and_smallest(). Executing:

put(difference_between_largest_and_smallest(10,4,7)); will output 6.

Functional languages are used in computer science research to explore new language features.[76] Moreover, their lack of side-effects have made them popular in parallel programming and concurrent programming.[77] However, application developers prefer the object-oriented features of imperative languages.[77]

Lisp[edit]

Lisp (1958) stands for «LISt Processor.»[78] It is tailored to process lists. A full structure of the data is formed by building lists of lists. In memory, a tree data structure is built. Internally, the tree structure lends nicely for recursive functions.[79] The syntax to build a tree is to enclose the space-separated elements within parenthesis. The following is a list of three elements. The first two elements are themselves lists of two elements:

((A B) (HELLO WORLD) 94)

Lisp has functions to extract and reconstruct elements.[80] The function head() returns a list containing the first element in the list. The function tail() returns a list containing everything but the first element. The function cons() returns a list that is the concatenation of other lists. Therefore, the following expression will return the list x:

cons(head(x), tail(x))

One drawback of Lisp is when many functions are nested, the parentheses may look confusing.[75] Modern Lisp environments help ensure parenthesis match. As an aside, Lisp does support the imperative language operations of the assignment statement and goto loops.[81] Also, Lisp is not concerned with the datatype of the elements at compile time.[82] Instead, it assigns (and may reassign) the datatypes at runtime. Assigning the datatype at runtime is called dynamic binding.[83] Whereas dynamic binding increases the language’s flexibility, programming errors may linger until late in the software development process.[83]

Writing large, reliable, and readable Lisp programs requires forethought. If properly planned, the program may be much shorter than an equivalent imperative language program.[75] Lisp is widely used in artificial intelligence. However, its usage has been accepted only because it has imperative language operations, making unintended side-effects possible.[77]

ML[edit]

ML (1973)[84] stands for «Meta Language.» ML checks to make sure only data of the same type are compared with one another.[85] For example, this function has one input parameter (an integer) and returns an integer:

fun times_10(n : int) : int = 10 * n;

ML is not parenthesis-eccentric like Lisp. The following is an application of times_10():

times_10 2

It returns «20 : int». (Both the results and the datatype are returned.)

Like Lisp, ML is tailored to process lists. Unlike Lisp, each element is the same datatype.[86] Moreover, ML assigns the datatype of an element at compile-time. Assigning the datatype at compile-time is called static binding. Static binding increases reliability because the compiler checks the context of variables before they are used.[87]

Prolog[edit]

Prolog (1972) stands for «PROgramming in LOGic.» It is a logic programming language, based on formal logic. The language was developed by Alain Colmerauer and Philippe Roussel in Marseille, France. It is an implementation of Selective Linear Definite clause resolution, pioneered by Robert Kowalski and others at the University of Edinburgh.[88]

The building blocks of a Prolog program are facts and rules. Here is a simple example:

cat(tom).                        % tom is a cat
mouse(jerry).                    % jerry is a mouse

animal(X) :- cat(X).             % each cat is an animal
animal(X) :- mouse(X).           % each mouse is an animal

big(X)   :- cat(X).              % each cat is big
small(X) :- mouse(X).            % each mouse is small

eat(X,Y) :- mouse(X), cheese(Y). % each mouse eats each cheese
eat(X,Y) :- big(X),   small(Y).  % each big animal eats each small animal

After all the facts and rules are entered, then a question can be asked:

Will Tom eat Jerry?

The following example shows how Prolog will convert a letter grade to its numeric value:

numeric_grade('A', 4).
numeric_grade('B', 3).
numeric_grade('C', 2).
numeric_grade('D', 1).
numeric_grade('F', 0).
numeric_grade(X, -1) :- not X = 'A', not X = 'B', not X = 'C', not X = 'D', not X = 'F'.
grade('The Student', 'A').
?- grade('The Student', X), numeric_grade(X, Y).
X = 'A',
Y = 4

Here is a comprehensive example:[89]

1) All dragons billow fire, or equivalently, a thing billows fire if the thing is a dragon:

billows_fire(X) :-
    is_a_dragon(X).

2) A creature billows fire if one of its parents billows fire:

billows_fire(X) :-
    is_a_creature(X),
    is_a_parent_of(Y,X),
    billows_fire(Y).

3) A thing X is a parent of a thing Y if X is the mother of Y or X is the father of Y:

 
is_a_parent_of(X, Y):- is_the_mother_of(X, Y).
is_a_parent_of(X, Y):- is_the_father_of(X, Y).

4) A thing is a creature if the thing is a dragon:

is_a_creature(X) :-
    is_a_dragon(X).

5) Norberta is a dragon, and Puff is a creature. Norberta is the mother of Puff.

is_a_dragon(norberta). 
is_a_creature(puff).
is_the_mother_of(norberta, puff).

Rule (2) is a recursive (inductive) definition. It can be understood declaratively, without the need to understand how it is executed.

Rule (3) shows how functions are represented by using relations. Here, the mother and father functions ensure that every individual has only one mother and only one father.

Prolog is an untyped language. Nonetheless, inheritance can be represented by using predicates. Rule (4) asserts that a creature is a superclass of a dragon.

Questions are answered using backward reasoning. Given the question:

Prolog generates two answers :

Practical applications for Prolog are knowledge representation and problem solving in artificial intelligence.

Object-oriented programming[edit]

Object-oriented programming is a programming method to execute operations (functions) on objects.[90] The basic idea is to group the characteristics of a phenomenon into an object container and give the container a name. The operations on the phenomenon are also grouped into the container.[90] Object-oriented programming developed by combining the need for containers and the need for safe functional programming.[91] This programming method need not be confined to an object-oriented language.[92] In an object-oriented language, an object container is called a class. In a non-object-oriented language, a data structure (which is also known as a record) may become an object container. To turn a data structure into an object container, operations need to be written specifically for the structure. The resulting structure is called an abstract datatype.[93] However, inheritance will be missing. Nonetheless, this shortcoming can be overcome.

Here is a C programming language header file for the GRADE abstract datatype in a simple school application:

/* grade.h */
/* ------- */

/* Used to allow multiple source files to include */
/* this header file without duplication errors.   */
/* ---------------------------------------------- */
#ifndef GRADE_H
#define GRADE_H

typedef struct
{
    char letter;
} GRADE;

/* Constructor */
/* ----------- */
GRADE *grade_new( char letter );

int grade_numeric( char letter );
#endif

The grade_new() function performs the same algorithm as the C++ constructor operation.

Here is a C programming language source file for the GRADE abstract datatype in a simple school application:

/* grade.c */
/* ------- */
#include "grade.h"

GRADE *grade_new( char letter )
{
    GRADE *grade;

    /* Allocate heap memory */
    /* -------------------- */
    if ( ! ( grade = calloc( 1, sizeof ( GRADE ) ) ) )
    {
        fprintf(stderr,
                "ERROR in %s/%s/%d: calloc() returned empty.\n",
                __FILE__,
                __FUNCTION__,
                __LINE__ );
        exit( 1 );
    }

    grade->letter = letter;
    return grade;
}

int grade_numeric( char letter )
{
    if ( ( letter == 'A' || letter == 'a' ) )
        return 4;
    else
    if ( ( letter == 'B' || letter == 'b' ) )
        return 3;
    else
    if ( ( letter == 'C' || letter == 'c' ) )
        return 2;
    else
    if ( ( letter == 'D' || letter == 'd' ) )
        return 1;
    else
    if ( ( letter == 'F' || letter == 'f' ) )
        return 0;
    else
        return -1;
}

In the constructor, the function calloc() is used instead of malloc() because each memory cell will be set to zero.

Here is a C programming language header file for the PERSON abstract datatype in a simple school application:

/* person.h */
/* -------- */
#ifndef PERSON_H
#define PERSON_H

typedef struct
{
    char *name;
} PERSON;

/* Constructor */
/* ----------- */
PERSON *person_new( char *name );
#endif

Here is a C programming language source file for the PERSON abstract datatype in a simple school application:

/* person.c */
/* -------- */
#include "person.h"

PERSON *person_new( char *name )
{
    PERSON *person;

    if ( ! ( person = calloc( 1, sizeof ( PERSON ) ) ) )
    {
        fprintf(stderr,
                "ERROR in %s/%s/%d: calloc() returned empty.\n",
                __FILE__,
                __FUNCTION__,
                __LINE__ );
        exit( 1 );
    }

    person->name = name;
    return person;
}

Here is a C programming language header file for the STUDENT abstract datatype in a simple school application:

/* student.h */
/* --------- */
#ifndef STUDENT_H
#define STUDENT_H

#include "person.h"
#include "grade.h"

typedef struct
{
    /* A STUDENT is a subset of PERSON. */
    /* -------------------------------- */
    PERSON *person;

    GRADE *grade;
} STUDENT;

/* Constructor */
/* ----------- */
STUDENT *student_new( char *name );
#endif

Here is a C programming language source file for the STUDENT abstract datatype in a simple school application:

/* student.c */
/* --------- */
#include "student.h"
#include "person.h"

STUDENT *student_new( char *name )
{
    STUDENT *student;

    if ( ! ( student = calloc( 1, sizeof ( STUDENT ) ) ) )
    {
        fprintf(stderr,
                "ERROR in %s/%s/%d: calloc() returned empty.\n",
                __FILE__,
                __FUNCTION__,
                __LINE__ );
        exit( 1 );
    }

    /* Execute the constructor of the PERSON superclass. */
    /* ------------------------------------------------- */
    student->person = person_new( name );
    return student;
}

Here is a driver program for demonstration:

/* student_dvr.c */
/* ------------- */
#include <stdio.h>
#include "student.h"

int main( void )
{
    STUDENT *student = student_new( "The Student" );
    student->grade = grade_new( 'a' );

    printf( "%s: Numeric grade = %d\n",
            /* Whereas a subset exists, inheritance does not. */
            student->person->name,
            /* Functional programming is executing functions just-in-time (JIT) */
            grade_numeric( student->grade->letter ) );

	return 0;
}

Here is a makefile to compile everything:

# makefile
# --------
all: student_dvr

clean:
    rm student_dvr *.o

student_dvr: student_dvr.c grade.o student.o person.o
    gcc student_dvr.c grade.o student.o person.o -o student_dvr

grade.o: grade.c grade.h
    gcc -c grade.c

student.o: student.c student.h
    gcc -c student.c

person.o: person.c person.h
    gcc -c person.c

The formal strategy to build object-oriented objects is to:[94]

  • Identify the objects. Most likely these will be nouns.
  • Identify each object’s attributes. What helps to describe the object?
  • Identify each object’s actions. Most likely these will be verbs.
  • Identify the relationships from object to object. Most likely these will be verbs.

For example:

  • A person is a human identified by a name.
  • A grade is an achievement identified by a letter.
  • A student is a person who earns a grade.

Syntax and semantics[edit]

The syntax of a programming language is a list of production rules which govern its form.[95] A programming language’s form is the correct placement of its declarations, expressions, and statements.[96] Complementing the syntax of a language are its semantics. The semantics describe the meanings attached to various syntactic constructs.[95] A syntactic construct may need a semantic description because a form may have an invalid interpretation.[97] Also, different languages might have the same syntax; however, their behaviors may be different.

The syntax of a language is formally described by listing the production rules. Whereas the syntax of a natural language is extremely complicated, a subset of the English language can have this production rule listing:[98]

  1. a sentence is made up of a noun-phrase followed by a verb-phrase;
  2. a noun-phrase is made up of an article followed by an adjective followed by a noun;
  3. a verb-phrase is made up of a verb followed by a noun-phrase;
  4. an article is ‘the’;
  5. an adjective is ‘big’ or
  6. an adjective is ‘small’;
  7. a noun is ‘cat’ or
  8. a noun is ‘mouse’;
  9. a verb is ‘eats’;

The words in bold-face are known as «non-terminals». The words in ‘single quotes’ are known as «terminals».[99]

From this production rule listing, complete sentences may be formed using a series of replacements.[100] The process is to replace non-terminals with either a valid non-terminal or a valid terminal. The replacement process repeats until only terminals remain. One valid sentence is:

  • sentence
  • noun-phrase verb-phrase
  • article adjective noun verb-phrase
  • the adjective noun verb-phrase
  • the big noun verb-phrase
  • the big cat verb-phrase
  • the big cat verb noun-phrase
  • the big cat eats noun-phrase
  • the big cat eats article adjective noun
  • the big cat eats the adjective noun
  • the big cat eats the small noun
  • the big cat eats the small mouse

However, another combination results in an invalid sentence:

  • the small mouse eats the big cat

Therefore, a semantic is necessary to correctly describe the meaning of an eat activity.

One production rule listing method is called the Backus–Naur form (BNF).[101] BNF describes the syntax of a language and itself has a syntax. This recursive definition is an example of a meta-language.[95] The syntax of BNF includes:

  • ::= which translates to is made up of a[n] when a non-terminal is to its right. It translates to is when a terminal is to its right.
  • | which translates to or.
  • < and > which surround non-terminals.

Using BNF, a subset of the English language can have this production rule listing:

<sentence> ::= <noun-phrase><verb-phrase>
<noun-phrase> ::= <article><adjective><noun>
<verb-phrase> ::= <verb><noun-phrase>
<article> ::= the
<adjective> ::= big | small
<noun> ::= cat | mouse
<verb> ::= eats

Using BNF, a signed-integer has the production rule listing:[102]

<signed-integer> ::= <sign><integer>
<sign> ::= + | -
<integer> ::= <digit> | <digit><integer>
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Notice the recursive production rule:

<integer> ::= <digit> | <digit><integer>

This allows for an infinite number of possibilities. Therefore, a semantic is necessary to describe a limitation of the number of digits.

Notice the leading zero possibility in the production rules:

<integer> ::= <digit> | <digit><integer>
<digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

Therefore, a semantic is necessary to describe that leading zeros need to be ignored.

Two formal methods are available to describe semantics. They are denotational semantics and axiomatic semantics.[103]

Software engineering and computer programming[edit]

Prior to programming languages, Betty Jennings and Fran Bilas programmed the ENIAC by moving cables and setting switches.

Software engineering is a variety of techniques to produce quality software.[104] Computer programming is the process of writing or editing source code. In a formal environment, a systems analyst will gather information from managers about all the organization’s processes to automate. This professional then prepares a detailed plan for the new or modified system.[105] The plan is analogous to an architect’s blueprint.[105]

Performance objectives[edit]

The systems analyst has the objective to deliver the right information to the right person at the right time.[106] The critical factors to achieve this objective are:[106]

  1. The quality of the output. Is the output useful for decision-making?
  2. The accuracy of the output. Does it reflect the true situation?
  3. The format of the output. Is the output easily understood?
  4. The speed of the output. Time-sensitive information is important when communicating with the customer in real time.

Cost objectives[edit]

Achieving performance objectives should be balanced with all of the costs, including:[107]

  1. Development costs.
  2. Uniqueness costs. A reusable system may be expensive. However, it might be preferred over a limited-use system.
  3. Hardware costs.
  4. Operating costs.

Applying a systems development process will mitigate the axiom: the later in the process an error is detected, the more expensive it is to correct.[108]

Waterfall model[edit]

The waterfall model is an implementation of a systems development process.[109] As the waterfall label implies, the basic phases overlap each other:[110]

  1. The investigation phase is to understand the underlying problem.
  2. The analysis phase is to understand the possible solutions.
  3. The design phase is to plan the best solution.
  4. The implementation phase is to program the best solution.
  5. The maintenance phase lasts throughout the life of the system. Changes to the system after it is deployed may be necessary.[111] Faults may exist, including specification faults, design faults, or coding faults. Improvements may be necessary. Adaption may be necessary to react to a changing environment.

Computer programmer[edit]

A computer programmer is a specialist responsible for writing or modifying the source code to implement the detailed plan.[105] A programming team is likely to be needed because most systems are too large to be completed by a single programmer.[112] However, adding programmers to a project may not shorten the completion time. Instead, it may lower the quality of the system.[112] To be effective, program modules need to be defined and distributed to team members.[112] Also, team members must interact with one another in a meaningful and effective way.[112]

Computer programmers may be programming in the small: programming within a single module.[113] Chances are a module will execute modules located in other source code files. Therefore, computer programmers may be programming in the large: programming modules so they will effectively couple with each other.[113] Programming-in-the-large includes contributing to the application programming interface (API).

Program modules[edit]

Modular programming is a technique to refine imperative language programs. Refined programs may reduce the software size, separate responsibilities, and thereby mitigate software aging. A program module is a sequence of statements that are bounded within a block and together identified by a name.[114] Modules have a function, context, and logic:[115]

  • The function of a module is what it does.
  • The context of a module are the elements being performed upon.
  • The logic of a module is how it performs the function.

The module’s name should be derived first by its function, then by its context. Its logic should not be part of the name.[115] For example, function compute_square_root( x ) or function compute_square_root_integer( i : integer ) are appropriate module names. However, function compute_square_root_by_division( x ) is not.

The degree of interaction within a module is its level of cohesion.[115] Cohesion is a judgment of the relationship between a module’s name and its function. The degree of interaction between modules is the level of coupling.[116] Coupling is a judgement of the relationship between a module’s context and the elements being performed upon.

Cohesion[edit]

The levels of cohesion from worst to best are:[117]

  • Coincidental Cohesion: A module has coincidental cohesion if it performs multiple functions, and the functions are completely unrelated. For example, function read_sales_record_print_next_line_convert_to_float(). Coincidental cohesion occurs in practice if management enforces silly rules. For example, «Every module will have between 35 and 50 executable statements.»[117]
  • Logical Cohesion: A module has logical cohesion if it has available a series of functions, but only one of them is executed. For example, function perform_arithmetic( perform_addition, a, b ).
  • Temporal Cohesion: A module has temporal cohesion if it performs functions related to time. One example, function initialize_variables_and_open_files(). Another example, stage_one(), stage_two(), …
  • Procedural Cohesion: A module has procedural cohesion if it performs multiple loosely related functions. For example, function read_part_number_update_employee_record().
  • Communicational Cohesion: A module has communicational cohesion if it performs multiple closely related functions. For example, function read_part_number_update_sales_record().
  • Informational Cohesion: A module has informational cohesion if it performs multiple functions, but each function has its own entry and exit points. Moreover, the functions share the same data structure. Object-oriented classes work at this level.
  • Functional Cohesion: a module has functional cohesion if it achieves a single goal working only on local variables. Moreover, it may be reusable in other contexts.

Coupling[edit]

The levels of coupling from worst to best are:[116]

  • Content Coupling: A module has content coupling if it modifies a local variable of another function. COBOL used to do this with the alter verb.
  • Common Coupling: A module has common coupling if it modifies a global variable.
  • Control Coupling: A module has control coupling if another module can modify its control flow. For example, perform_arithmetic( perform_addition, a, b ). Instead, control should be on the makeup of the returned object.
  • Stamp Coupling: A module has stamp coupling if an element of a data structure passed as a parameter is modified. Object-oriented classes work at this level.
  • Data Coupling: A module has data coupling if all of its input parameters are needed and none of them are modified. Moreover, the result of the function is returned as a single object.

Data flow analysis[edit]

A sample function-level data-flow diagram

Data flow analysis is a design method used to achieve modules of functional cohesion and data coupling.[118] The input to the method is a data-flow diagram. A data-flow diagram is a set of ovals representing modules. Each module’s name is displayed inside its oval. Modules may be at the executable level or the function level.

The diagram also has arrows connecting modules to each other. Arrows pointing into modules represent a set of inputs. Each module should have only one arrow pointing out from it to represent its single output object. (Optionally, an additional exception arrow points out.) A daisy chain of ovals will convey an entire algorithm. The input modules should start the diagram. The input modules should connect to the transform modules. The transform modules should connect to the output modules.[119]

Functional categories[edit]

A diagram showing that the user interacts with the application software. The application software interacts with the operating system, which interacts with the hardware.

Computer programs may be categorized along functional lines. The main functional categories are application software and system software. System software includes the operating system, which couples computer hardware with application software.[120] The purpose of the operating system is to provide an environment where application software executes in a convenient and efficient manner.[120] Both application software and system software execute utility programs. At the hardware level, a microcode program controls the circuits throughout the central processing unit.

Application software[edit]

Application software is the key to unlocking the potential of the computer system.[121] Enterprise application software bundles accounting, personnel, customer, and vendor applications. Examples include enterprise resource planning, customer relationship management, and supply chain management software.

Enterprise applications may be developed in-house as a one-of-a-kind proprietary software.[122] Alternatively, they may be purchased as off-the-shelf software. Purchased software may be modified to provide custom software. If the application is customized, then either the company’s resources are used or the resources are outsourced. Outsourced software development may be from the original software vendor or a third-party developer.[123]

The potential advantages of in-house software are features and reports may be developed exactly to specification.[124] Management may also be involved in the development process and offer a level of control.[125] Management may decide to counteract a competitor’s new initiative or implement a customer or vendor requirement.[126] A merger or acquisition may necessitate enterprise software changes. The potential disadvantages of in-house software are time and resource costs may be extensive.[122] Furthermore, risks concerning features and performance may be looming.

The potential advantages of off-the-shelf software are upfront costs are identifiable, the basic needs should be fulfilled, and its performance and reliability have a track record.[122] The potential disadvantages of off-the-shelf software are it may have unnecessary features that confuse end users, it may lack features the enterprise needs, and the data flow may not match the enterprise’s work processes.[122]

One approach to economically obtaining a customized enterprise application is through an application service provider.[127] Specialty companies provide hardware, custom software, and end-user support. They may speed the development of new applications because they possess skilled information system staff. The biggest advantage is it frees in-house resources from staffing and managing complex computer projects.[127] Many application service providers target small, fast-growing companies with limited information system resources.[127] On the other hand, larger companies with major systems will likely have their technical infrastructure in place. One risk is having to trust an external organization with sensitive information. Another risk is having to trust the provider’s infrastructure reliability.[127]

Operating system[edit]

Program vs. Process vs. Thread
Scheduling, Preemption, Context Switching

An operating system is the low-level software that supports a computer’s basic functions, such as scheduling processes and controlling peripherals.[120]

In the 1950s, the programmer, who was also the operator, would write a program and run it. After the program finished executing, the output may have been printed, or it may have been punched onto paper tape or cards for later processing.[27] More often than not the program did not work. The programmer then looked at the console lights and fiddled with the console switches. If less fortunate, a memory printout was made for further study. In the 1960s, programmers reduced the amount of wasted time by automating the operator’s job. A program called an operating system was kept in the computer at all times.[128]

The term operating system may refer to two levels of software.[129] The operating system may refer to the kernel program that manages the processes, memory, and devices. More broadly, the operating system may refer to the entire package of the central software. The package includes a kernel program, command-line interpreter, graphical user interface, utility programs, and editor.[129]

Kernel Program[edit]

A kernel connects the application software to the hardware of a computer.

The kernel’s main purpose is to manage the limited resources of a computer:

  • The kernel program should perform process scheduling.[130] The kernel creates a process control block when a program is selected for execution. However, an executing program gets exclusive access to the central processing unit only for a time slice. To provide each user with the appearance of continuous access, the kernel quickly preempts each process control block to execute another one. The goal for system developers is to minimize dispatch latency.

Physical memory is scattered around RAM and the hard disk. Virtual memory is one continuous block.
  • The kernel program should perform memory management.
  • When the kernel initially loads an executable into memory, it divides the address space logically into regions.[131] The kernel maintains a master-region table and many per-process-region (pregion) tables—one for each running process.[131] These tables constitute the virtual address space. The master-region table is used to determine where its contents are located in physical memory. The pregion tables allow each process to have its own program (text) pregion, data pregion, and stack pregion.
  • The program pregion stores machine instructions. Since machine instructions do not change, the program pregion may be shared by many processes of the same executable.[131]
  • To save time and memory, the kernel may load only blocks of execution instructions from the disk drive, not the entire execution file completely.[130]
  • The kernel is responsible for translating virtual addresses into physical addresses. The kernel may request data from the memory controller and, instead, receive a page fault.[132] If so, the kernel accesses the memory management unit to populate the physical data region and translate the address.[133]
  • The kernel allocates memory from the heap upon request by a process.[63] When the process is finished with the memory, the process may request for it to be freed. If the process exits without requesting all allocated memory to be freed, then the kernel performs garbage collection to free the memory.
  • The kernel also ensures that a process only accesses its own memory, and not that of the kernel or other processes.[130]
  • The kernel program should perform file system management.[130] The kernel has instructions to create, retrieve, update, and delete files.
  • The kernel program should perform device management.[130] The kernel provides programs to standardize and simplify the interface to the mouse, keyboard, disk drives, printers, and other devices. Moreover, the kernel should arbitrate access to a device if two processes request it at the same time.
  • The kernel program should perform network management.[134] The kernel transmits and receives packets on behalf of processes. One key service is to find an efficient route to the target system.
  • The kernel program should provide system level functions for programmers to use.[135]
    • Programmers access files through a relatively simple interface that in turn executes a relatively complicated low-level I/O interface. The low-level interface includes file creation, file descriptors, file seeking, physical reading, and physical writing.
    • Programmers create processes through a relatively simple interface that in turn executes a relatively complicated low-level interface.
    • Programmers perform date/time arithmetic through a relatively simple interface that in turn executes a relatively complicated low-level time interface.[136]
  • The kernel program should provide a communication channel between executing processes.[137] For a large software system, it may be desirable to engineer the system into smaller processes. Processes may communicate with one another by sending and receiving signals.

Originally, operating systems were programmed in assembly; however, modern operating systems are typically written in higher-level languages like C, Objective-C, and Swift.[g]

Utility program[edit]

A utility program is designed to aid system administration and software execution. Operating systems execute hardware utility programs to check the status of disk drives, memory, speakers, and printers.[138] A utility program may optimize the placement of a file on a crowded disk. System utility programs monitor hardware and network performance. When a metric is outside an acceptable range, a trigger alert is generated.[139]

Utility programs include compression programs so data files are stored on less disk space.[138] Compressed programs also save time when data files are transmitted over the network.[138] Utility programs can sort and merge data sets.[139] Utility programs detect computer viruses.[139]

Microcode program[edit]

NOT gate
NAND gate
NOR gate
AND gate
OR gate

A microcode program is the bottom-level interpreter that controls the data path of software-driven computers.[140]
(Advances in hardware have migrated these operations to hardware execution circuits.)[140] Microcode instructions allow the programmer to more easily implement the digital logic level[141]—the computer’s real hardware. The digital logic level is the boundary between computer science and computer engineering.[142]

A logic gate is a tiny transistor that can return one of two signals: on or off.[143]

  • Having one transistor forms the NOT gate.
  • Connecting two transistors in series forms the NAND gate.
  • Connecting two transistors in parallel forms the NOR gate.
  • Connecting a NOT gate to a NAND gate forms the AND gate.
  • Connecting a NOT gate to a NOR gate forms the OR gate.

These five gates form the building blocks of binary algebra—the digital logic functions of the computer.

Microcode instructions are mnemonics programmers may use to execute digital logic functions instead of forming them in binary algebra. They are stored in a central processing unit’s (CPU) control store.[144]
These hardware-level instructions move data throughout the data path.

The micro-instruction cycle begins when the microsequencer uses its microprogram counter to fetch the next machine instruction from random-access memory.[145] The next step is to decode the machine instruction by selecting the proper output line to the hardware module.[146]
The final step is to execute the instruction using the hardware module’s set of gates.

A symbolic representation of an ALU

Instructions to perform arithmetic are passed through an arithmetic logic unit (ALU).[147] The ALU has circuits to perform elementary operations to add, shift, and compare integers. By combining and looping the elementary operations through the ALU, the CPU performs its complex arithmetic.

Microcode instructions move data between the CPU and the memory controller. Memory controller microcode instructions manipulate two registers. The memory address register is used to access each memory cell’s address. The memory data register is used to set and read each cell’s contents.[148]

Microcode instructions move data between the CPU and the many computer buses. The disk controller bus writes to and reads from hard disk drives. Data is also moved between the CPU and other functional units via the peripheral component interconnect express bus.[149]

Notes[edit]

  1. ^ A compiled program has each machine instruction ready for the CPU.
  2. ^ For more information, visit X86 assembly language#Instruction types.
  3. ^ introduced in 1999
  4. ^ Operators like x++ will usually compile to a single instruction.
  5. ^ This function could be written more concisely as int increment_counter(){ static int counter; return ++counter;}. 1) Static variables are automatically initialized to zero. 2) ++counter is a prefix increment operator.
  6. ^ This is despite the metaphor of a stack, which normally grows from bottom to top.
  7. ^ The UNIX operating system was written in C, macOS was written in Objective-C, and Swift replaced Objective-C.

References[edit]

  1. ^ «ISO/IEC 2382:2015». ISO. 2020-09-03. Archived from the original on 2016-06-17. Retrieved 2022-05-26. [Software includes] all or part of the programs, procedures, rules, and associated documentation of an information processing system.
  2. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 7. ISBN 0-201-71012-9.
  3. ^ Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 98. ISBN 978-0-201-50480-4.
  4. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 32. ISBN 978-0-13-854662-5.
  5. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 30. ISBN 0-201-71012-9. Their intention was to produce a language that was very simple for students to learn[.]
  6. ^ a b c Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 31. ISBN 0-201-71012-9.
  7. ^ a b c d e f Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 30. ISBN 0-201-71012-9.
  8. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 30. ISBN 0-201-71012-9. The idea was that students could be merely casual users or go on from Basic to more sophisticated and powerful languages[.]
  9. ^ a b McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 16. ISBN 978-0-8027-1348-3.
  10. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 14. ISBN 978-0-13-854662-5.
  11. ^ Bromley, Allan G. (1998). «Charles Babbage’s Analytical Engine, 1838» (PDF). IEEE Annals of the History of Computing. 20 (4): 29–45. doi:10.1109/85.728228. S2CID 2285332. Archived (PDF) from the original on 2016-03-04. Retrieved 2015-10-30.
  12. ^ a b Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 15. ISBN 978-0-13-854662-5.
  13. ^ J. Fuegi; J. Francis (October–December 2003), «Lovelace & Babbage and the creation of the 1843 ‘notes’«, Annals of the History of Computing, 25 (4): 16, 19, 25, doi:10.1109/MAHC.2003.1253887
  14. ^ Rosen, Kenneth H. (1991). Discrete Mathematics and Its Applications. McGraw-Hill, Inc. p. 654. ISBN 978-0-07-053744-6. Turing machines can model all the computations that can be performed on a computing machine.
  15. ^ Linz, Peter (1990). An Introduction to Formal Languages and Automata. D. C. Heath and Company. p. 234. ISBN 978-0-669-17342-0.
  16. ^ Linz, Peter (1990). An Introduction to Formal Languages and Automata. D. C. Heath and Company. p. 243. ISBN 978-0-669-17342-0. [A]ll the common mathematical functions, no matter how complicated, are Turing-computable.
  17. ^ a b c McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 102. ISBN 978-0-8027-1348-3.
  18. ^ McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 94. ISBN 978-0-8027-1348-3.
  19. ^ McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 107. ISBN 978-0-8027-1348-3.
  20. ^ McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 120. ISBN 978-0-8027-1348-3.
  21. ^ a b McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 118. ISBN 978-0-8027-1348-3.
  22. ^ McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 119. ISBN 978-0-8027-1348-3.
  23. ^ McCartney, Scott (1999). ENIAC – The Triumphs and Tragedies of the World’s First Computer. Walker and Company. p. 123. ISBN 978-0-8027-1348-3.
  24. ^ a b Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 21. ISBN 978-0-13-854662-5.
  25. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 27. ISBN 0-201-71012-9.
  26. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 29. ISBN 0-201-71012-9.
  27. ^ a b c Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 6. ISBN 978-0-201-50480-4.
  28. ^ a b c d e f g h i «Bill Pentz — A bit of Background: the Post-War March to VLSI». Digibarn Computer Museum. August 2008. Archived from the original on March 21, 2022. Retrieved January 31, 2022.
  29. ^ a b To the Digital Age: Research Labs, Start-up Companies, and the Rise of MOS. Johns Hopkins University Press. 2002. ISBN 9780801886393. Archived from the original on February 2, 2023. Retrieved February 3, 2022.
  30. ^ Chalamala, Babu (2017). «Manufacturing of Silicon Materials for Microelectronics and Solar PV». Sandia National Laboratories. Archived from the original on March 23, 2023. Retrieved February 8, 2022.
  31. ^ «Fabricating ICs Making a base wafer». Britannica. Archived from the original on February 8, 2022. Retrieved February 8, 2022.
  32. ^ «Introduction to NMOS and PMOS Transistors». Anysilicon. 4 November 2021. Archived from the original on 6 February 2022. Retrieved February 5, 2022.
  33. ^ «microprocessor definition». Britannica. Archived from the original on April 1, 2022. Retrieved April 1, 2022.
  34. ^ «Chip Hall of Fame: Intel 4004 Microprocessor». Institute of Electrical and Electronics Engineers. July 2, 2018. Archived from the original on February 7, 2022. Retrieved January 31, 2022.
  35. ^ «360 Revolution» (PDF). Father, Son & Co. 1990. Archived (PDF) from the original on 2022-10-10. Retrieved February 5, 2022.
  36. ^ a b «Inside the world’s long-lost first microcomputer». c/net. January 8, 2010. Archived from the original on February 1, 2022. Retrieved January 31, 2022.
  37. ^ «Bill Gates, Microsoft and the IBM Personal Computer». InfoWorld. August 23, 1982. Archived from the original on 18 February 2023. Retrieved 1 February 2022.
  38. ^ a b Stroustrup, Bjarne (2013). The C++ Programming Language, Fourth Edition. Addison-Wesley. p. 10. ISBN 978-0-321-56384-2.
  39. ^ a b c Stroustrup, Bjarne (2013). The C++ Programming Language, Fourth Edition. Addison-Wesley. p. 11. ISBN 978-0-321-56384-2.
  40. ^ a b Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 159. ISBN 0-619-06489-7.
  41. ^ a b Linz, Peter (1990). An Introduction to Formal Languages and Automata. D. C. Heath and Company. p. 2. ISBN 978-0-669-17342-0.
  42. ^ Weiss, Mark Allen (1994). Data Structures and Algorithm Analysis in C++. Benjamin/Cummings Publishing Company, Inc. p. 29. ISBN 0-8053-5443-3.
  43. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 17. ISBN 978-0-13-854662-5.
  44. ^ a b c d e f Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 160. ISBN 0-619-06489-7.
  45. ^ a b c Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 399. ISBN 978-0-13-854662-5.
  46. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 400. ISBN 978-0-13-854662-5.
  47. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 398. ISBN 978-0-13-854662-5.
  48. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 26. ISBN 0-201-71012-9.
  49. ^ a b c d Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 37. ISBN 0-201-71012-9.
  50. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 160. ISBN 0-619-06489-7. With third-generation and higher-level programming languages, each statement in the language translates into several instructions in machine language.
  51. ^ Wilson, Leslie B. (1993). Comparative Programming Languages, Second Edition. Addison-Wesley. p. 75. ISBN 978-0-201-56885-1.
  52. ^ Stroustrup, Bjarne (2013). The C++ Programming Language, Fourth Edition. Addison-Wesley. p. 40. ISBN 978-0-321-56384-2.
  53. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 16. ISBN 0-201-71012-9.
  54. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 24. ISBN 0-201-71012-9.
  55. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 25. ISBN 0-201-71012-9.
  56. ^ a b c d Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 19. ISBN 0-201-71012-9.
  57. ^ a b c d «Memory Layout of C Programs». 12 September 2011. Archived from the original on 6 November 2021. Retrieved 6 November 2021.
  58. ^ a b Kernighan, Brian W.; Ritchie, Dennis M. (1988). The C Programming Language Second Edition. Prentice Hall. p. 31. ISBN 0-13-110362-8.
  59. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 128. ISBN 0-201-71012-9.
  60. ^ a b c Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 121. ISBN 978-1-59327-220-3.
  61. ^ Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 122. ISBN 978-1-59327-220-3.
  62. ^ Kernighan, Brian W.; Ritchie, Dennis M. (1988). The C Programming Language Second Edition. Prentice Hall. p. 185. ISBN 0-13-110362-8.
  63. ^ a b Kernighan, Brian W.; Ritchie, Dennis M. (1988). The C Programming Language Second Edition. Prentice Hall. p. 187. ISBN 0-13-110362-8.
  64. ^ a b c Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 38. ISBN 0-201-71012-9.
  65. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 193. ISBN 0-201-71012-9.
  66. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 39. ISBN 0-201-71012-9.
  67. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 35. ISBN 0-201-71012-9.
  68. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 192. ISBN 0-201-71012-9.
  69. ^ Stroustrup, Bjarne (2013). The C++ Programming Language, Fourth Edition. Addison-Wesley. p. 22. ISBN 978-0-321-56384-2.
  70. ^ Stroustrup, Bjarne (2013). The C++ Programming Language, Fourth Edition. Addison-Wesley. p. 21. ISBN 978-0-321-56384-2.
  71. ^ Stroustrup, Bjarne (2013). The C++ Programming Language, Fourth Edition. Addison-Wesley. p. 49. ISBN 978-0-321-56384-2.
  72. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 218. ISBN 0-201-71012-9.
  73. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 217. ISBN 0-201-71012-9.
  74. ^ Weiss, Mark Allen (1994). Data Structures and Algorithm Analysis in C++. Benjamin/Cummings Publishing Company, Inc. p. 103. ISBN 0-8053-5443-3. When there is a function call, all the important information needs to be saved, such as register values (corresponding to variable names) and the return address (which can be obtained from the program counter)[.] … When the function wants to return, it … restores all the registers. It then makes the return jump. Clearly, all of this work can be done using a stack, and that is exactly what happens in virtually every programming language that implements recursion.
  75. ^ a b c Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 230. ISBN 0-201-71012-9.
  76. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 240. ISBN 0-201-71012-9.
  77. ^ a b c Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 241. ISBN 0-201-71012-9.
  78. ^ Jones, Robin; Maynard, Clive; Stewart, Ian (December 6, 2012). The Art of Lisp Programming. Springer Science & Business Media. p. 2. ISBN 9781447117193.
  79. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 220. ISBN 0-201-71012-9.
  80. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 221. ISBN 0-201-71012-9.
  81. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 229. ISBN 0-201-71012-9.
  82. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 227. ISBN 0-201-71012-9.
  83. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 222. ISBN 0-201-71012-9.
  84. ^ Gordon, Michael J. C. (1996). «From LCF to HOL: a short history». Archived from the original on 2016-09-05. Retrieved 2021-10-30.
  85. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 233. ISBN 0-201-71012-9.
  86. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 235. ISBN 0-201-71012-9.
  87. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 55. ISBN 0-201-71012-9.
  88. ^ Colmerauer, A.; Roussel, P. (1992). «The birth of Prolog» (PDF). ACM Sigplan Notices. Association for Computing Machinery. 28 (3): 5. doi:10.1145/155360.155362.
  89. ^ Kowalski, R., Dávila, J., Sartor, G. and Calejo, M., 2023. Logical English for law and education. In Prolog: The Next 50 Years (pp. 287-299). Cham: Springer Nature Switzerland.
  90. ^ a b Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 35. ISBN 0-201-71012-9. Simula was based on Algol 60 with one very important addition — the class concept. … The basic idea was that the data (or data structure) and the operations performed on it belong together[.]
  91. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 39. ISBN 0-201-71012-9. Originally, a large number of experimental languages were designed, many of which combined object-oriented and functional programming.
  92. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 284. ISBN 0-256-08515-3. While it is true that OOD [(object oriented design)] as such is not supported by the majority of popular languages, a large subset of OOD can be used.
  93. ^ Weiss, Mark Allen (1994). Data Structures and Algorithm Analysis in C++. Benjamin/Cummings Publishing Company, Inc. p. 57. ISBN 0-8053-5443-3.
  94. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 285. ISBN 0-256-08515-3.
  95. ^ a b c Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 290. ISBN 0-201-71012-9.
  96. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 78. ISBN 0-201-71012-9. The main components of an imperative language are declarations, expressions, and statements.
  97. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 294. ISBN 0-201-71012-9.
  98. ^ Rosen, Kenneth H. (1991). Discrete Mathematics and Its Applications. McGraw-Hill, Inc. p. 615. ISBN 978-0-07-053744-6.
  99. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 291. ISBN 0-201-71012-9.
  100. ^ Rosen, Kenneth H. (1991). Discrete Mathematics and Its Applications. McGraw-Hill, Inc. p. 616. ISBN 978-0-07-053744-6.
  101. ^ Rosen, Kenneth H. (1991). Discrete Mathematics and Its Applications. McGraw-Hill, Inc. p. 623. ISBN 978-0-07-053744-6.
  102. ^ Rosen, Kenneth H. (1991). Discrete Mathematics and Its Applications. McGraw-Hill, Inc. p. 624. ISBN 978-0-07-053744-6.
  103. ^ Wilson, Leslie B. (2001). Comparative Programming Languages, Third Edition. Addison-Wesley. p. 297. ISBN 0-201-71012-9.
  104. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. Preface. ISBN 0-256-08515-3.
  105. ^ a b c Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 507. ISBN 0-619-06489-7.
  106. ^ a b Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 513. ISBN 0-619-06489-7.
  107. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 514. ISBN 0-619-06489-7.
  108. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 516. ISBN 0-619-06489-7.
  109. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 8. ISBN 0-256-08515-3.
  110. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 517. ISBN 0-619-06489-7.
  111. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 345. ISBN 0-256-08515-3.
  112. ^ a b c d Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 319. ISBN 0-256-08515-3.
  113. ^ a b Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 331. ISBN 0-256-08515-3.
  114. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 216. ISBN 0-256-08515-3.
  115. ^ a b c Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 219. ISBN 0-256-08515-3.
  116. ^ a b Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 226. ISBN 0-256-08515-3.
  117. ^ a b Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 220. ISBN 0-256-08515-3.
  118. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 258. ISBN 0-256-08515-3.
  119. ^ Schach, Stephen R. (1990). Software Engineering. Aksen Associates Incorporated Publishers. p. 259. ISBN 0-256-08515-3.
  120. ^ a b c Silberschatz, Abraham (1994). Operating System Concepts, Fourth Edition. Addison-Wesley. p. 1. ISBN 978-0-201-50480-4.
  121. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 147. ISBN 0-619-06489-7. The key to unlocking the potential of any computer system is application software.
  122. ^ a b c d Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 147. ISBN 0-619-06489-7.
  123. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 147. ISBN 0-619-06489-7. [A] third-party software firm, often called a value-added software vendor, may develop or modify a software program to meet the needs of a particular industry or company.
  124. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 148. ISBN 0-619-06489-7. Heading: Proprietary Software; Subheading: Advantages; Quote: You can get exactly what you need in terms of features, reports, and so on.
  125. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 148. ISBN 0-619-06489-7. Heading: Proprietary Software; Subheading: Advantages; Quote: Being involved in the development offers a further level of control over the results.
  126. ^ Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 147. ISBN 0-619-06489-7. Heading: Proprietary Software; Subheading: Advantages; Quote: There is more flexibility in making modifications that may be required to counteract a new initiative by one of your competitors or to meet new supplier and/or customer requirements.
  127. ^ a b c d Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 149. ISBN 0-619-06489-7.
  128. ^ Tanenbaum, Andrew S. (1990). Structured Computer Organization, Third Edition. Prentice Hall. p. 11. ISBN 978-0-13-854662-5.
  129. ^ a b Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 21. ISBN 978-1-59327-220-3.
  130. ^ a b c d e Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 22. ISBN 978-1-59327-220-3.
  131. ^ a b c Bach, Maurice J. (1986). The Design of the UNIX Operating System. Prentice-Hall, Inc. p. 152. ISBN 0-13-201799-7.
  132. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 443. ISBN 978-0-13-291652-3.
  133. ^ Lacamera, Daniele (2018). Embedded Systems Architecture. Packt. p. 8. ISBN 978-1-78883-250-2.
  134. ^ Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 23. ISBN 978-1-59327-220-3.
  135. ^ Kernighan, Brian W. (1984). The Unix Programming Environment. Prentice Hall. p. 201. ISBN 0-13-937699-2.
  136. ^ Kerrisk, Michael (2010). The Linux Programming Interface. No Starch Press. p. 187. ISBN 978-1-59327-220-3.
  137. ^ Haviland, Keith (1987). Unix System Programming. Addison-Wesley Publishing Company. p. 121. ISBN 0-201-12919-1.
  138. ^ a b c Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 145. ISBN 0-619-06489-7.
  139. ^ a b c Stair, Ralph M. (2003). Principles of Information Systems, Sixth Edition. Thomson. p. 146. ISBN 0-619-06489-7.
  140. ^ a b Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 6. ISBN 978-0-13-291652-3.
  141. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 243. ISBN 978-0-13-291652-3.
  142. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 147. ISBN 978-0-13-291652-3.
  143. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 148. ISBN 978-0-13-291652-3.
  144. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 253. ISBN 978-0-13-291652-3.
  145. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 255. ISBN 978-0-13-291652-3.
  146. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 161. ISBN 978-0-13-291652-3.
  147. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 166. ISBN 978-0-13-291652-3.
  148. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 249. ISBN 978-0-13-291652-3.
  149. ^ Tanenbaum, Andrew S. (2013). Structured Computer Organization, Sixth Edition. Pearson. p. 111. ISBN 978-0-13-291652-3.

Понравилась статья? Поделить с друзьями:

Это тоже интересно:

  • Порошок коза от простуды турецкий инструкция
  • Порядок регистрации фонда пошаговая инструкция
  • Порошок карбоцистеин инструкция по применению цена
  • Порядок регистрации ооо в 2023 году пошаговая инструкция
  • Порошок кандид инструкция по применению взрослым

  • Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии