Документ взят из кэша поисковой машины. Адрес оригинального документа :
http://wiki.cmc.msu.ru/Practicum/PracticumPascal?cover=print;raw=on
Дата изменения: Unknown
Дата индексирования: Mon Apr 11 19:09:56 2016
Кодировка: koi8-r
---+ Практикум по Паскалю %TOC% ---++ Выбор системы Для изучения (использования) языка Pascal доступны следующие компиляторы: * Free Pascal (вместе со средой); * Borland Pascal (вместе со средой); * компилятор GNU Pascal (gpc). Безусловно, выбор системы в первую очередь определяется требованием преподавателя. Рассмотрим возможный выбор подробнее. ---++ Работа с Borland Pascal Среда Borland Pascal разрабатывалась под ОС, которой уже нет и под процессор, которого тоже уже нет. Как результат - на современных потомках той OC, работающих на современных процессорах эта система может и не работать. Для решения проблемы лучше использовать эмулятор, рекомендуется - DosBox. Таким образом, чтобы работать в системе Borland Pascal в классе практикума, надо запустить этот эмулятор. Иконка запуска выведена на рабочий стол (KDE,Gnome) или в меню (!IceWM). Если используется что-то другое или не хочется через иконку, то запустить можно через интерфейс командной строки (надо ввести в терминале *dosbox.sh*). Как следует из названия, запустится система DOS в "коробке". В появившемся окне надо ввести *bp*. Переключение между языками в DOS - нажатие двух Shift'ов одновременно. ---++ Работа с Free Pascal Free Pascal - это современная и поддерживаемая в настоящий момент среда разработки для языка Pascal. Совместима с Borland Pascal. Наряду с этим есть Lazarus - аналог Delphi. [[FreePascal][Подробнее об этой системе]] Изначально многие методички считают, что Вы работаете в Borland Pascal. Free Pascal в классах практикума изначально настроен на совместимость с этой системой. Т.е. поведение, размеры типов, трактовка функций-переменных и т.д. совпадает. На текущий момент не найдена программа, поведение которой различалось бы в BP и FP. ---++ Работа с GNU Pascal GNU Pascal - это лишь компилятор, поэтому схема работы такова: 1 В каком-нибудь редакторе набираете текст программы (в любом) и сохраняете (например, под именем a.pas); 1 В терминале говорите<strong> gpc a.pas</strong> 1 Если есть ошибки - возвращаетесь к редактору в пункте 1. 1 Иначе запускаете программу (./a.out)
This topic: Practicum
>
WebHome
>
PracticumPascal
Topic revision:
02 Oct 2010,
RomanKondakov
(raw view)
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback