Системой программирования является ms windows borland pascal

This article is featured; it's one of the best articles at the Borland Pascal Wiki. Users who will compromise its status may be blocked. Turbo Pascal is a complete development system that includes a compiler and an Integrated Development Environment (IDE) for the Pascal programming language running mainly on MS-DOS, developed by Borland under Philippe Kahn's leadership. The name Borland Pascal was generally reserved for the high end packages (with more libraries and standard library source code)
This article is featured; it’s one of the best articles at the Borland Pascal Wiki. Users who will compromise its status may be blocked.

Screenshot

Turbo Pascal is a complete development system that includes a compiler and an Integrated Development Environment (IDE) for the Pascal programming language running mainly on MS-DOS, developed by Borland under Philippe Kahn’s leadership. The name Borland Pascal was generally reserved for the high end packages (with more libraries and standard library source code) while the original cheap and widely known version was sold as Turbo Pascal. The name Borland Pascal is also used more generically for Borland’s dialect of Pascal.

Borland has released three versions of Turbo Pascal for free: versions 1.0, 3.02 and 5.5.

Motivation for Turbo Pascal[]

Philippe Kahn first saw an opportunity for Borland, his newly formed software company, in the field of programming tools. Historically, the vast majority of programmers saw their work flow in terms of the edit/compile/link cycle, with separate tools dedicated to each task. Programmers wrote code in a text editor, a compiler created object code from source (often requiring multiple passes), and a linker combined object code with runtime libraries to produce an executable program. This cycle was the result of limited computer power and small amounts of memory.

In the IBM PC market of the early 1980s, the major programmer tool vendors included IBM, Microsoft, and Lattice. They all made C compilers (and some made Pascal compilers), which all worked in a similar fashion. For example, the Microsoft Pascal system consisted of two compiler passes and a final linking pass (which could take minutes on systems with only floppy disks for secondary storage). This process was the cumbersome product of the extremely limited resources of the early IBM PC models. Vendors of software development tools aimed their products at professional developers, and the price for these basic tools plus ancillary tools like profilers ran into the hundreds of dollars.

Kahn’s idea was to integrate these separate functions in a programming toolkit, have it run with much better performance, and charge one low price for it all. Instead of selling the kit through established sales channels (retailers or resellers), his new tool would be sold inexpensively via mail-order. Turbo Pascal is generally considered to be the first popular Integrated Development Environment (IDE) of any type.

As an additional selling point against the bigger vendors, Turbo Pascal disks came with no copy protection of any sort. Turbo Pascal came with the famous «Book License»: «You must treat this software just like a book … may be used by any number of people … may be freely moved from one computer location to another». Since the first versions didn’t have online help, copy protection was effectively enforced by possession of the Turbo Pascal reference manual (pictured above).

Version history[]

The Turbo Pascal compiler is based on the Blue Label Pascal compiler originally produced for the NasSys cassette-based operating system of the Nascom microcomputer in 1981 by Anders Hejlsberg. This was first rewritten as the Compas Pascal compiler for the CP/M operating system and then as the Turbo Pascal compiler for DOS and CP/M. A version of Turbo Pascal was available for the Apple Macintosh from about 1986 but was eventually discontinued around 1992. Another version was available for the DEC Rainbow through several releases.

Version 1.0[]

See also Antique Software: Turbo Pascal v1.0. Borland licensed the PolyPascal compiler core, written by Anders Hejlsberg (Poly Data was the name of his company in Denmark), and added the user interface and editor. Anders joined the company as an employee and was the architect for all versions of the Turbo Pascal compiler and the first three versions of Borland Delphi.

Turbo Pascal 1.0 was very fast compared to other microcomputer Pascal compilers. Turbo Pascal 1.0 was not only fast but also compact due to the lack of EXE support — the compiler was a single COM file, about 38 kilobytes long. This file included the editor, compiler, linker, and all of the library routines. The edit/compile/run cycle was fast compared to other Pascal implementations, because everything related to building the program was stored in RAM. Writing a built program to disk was an additional menu option.

When the first version of Turbo Pascal appeared on November 20 1983, the type of IDE it used was relatively new. On its debut in the American market, Turbo Pascal retailed for USD$49.99. The integrated Pascal compiler also was of very good quality compared to other Pascal products of the time and was affordable above all. The «Turbo» name alluded to its compilation speed as well as the speed of the executables it produced. The speed of these «com» executable files was a revelation for developers whose only previous experience programming the PC was with Microsoft’s BASIC.

The IDE was incredible for its day, a day of extremely limited resources for the typical IBM PC. It was simple and intuitive, and it had a menu system that was well organized. Early versions used the WordStar control key layout, which was the de facto standard because of WordStar’s wide use. Later versions of the IDE, designed for later PCs with more disk space and memory, had the ability to instantly look up the definitions of the keywords of the language just by putting the cursor over a keyword and hitting the help button. The definitions also frequently included example code that used the keyword. This enabled the inexperienced programmer to learn Pascal simply by using the IDE, without actually requiring help from a book.

Later versions[]

Beginning with version 4.0, released in 1987, the compiler could generate executables in native EXE format under MS-DOS. (Previous versions could generate only COM files.) Along with this, support for the increasingly outdated CP/M operating system was dropped. This version also introduced the first full-screen user interface with pull-down menus. Prior to 4.0, the product had a text-based menu screen and a separate full-screen editor.

Version 5.x introduced the familiar Borland blue screen, which would be the trademark of the company’s MS-DOS compiler tools until the end of this line in the middle 1990s.

Later versions had the ability to easily integrate assembly language within Pascal. The addition of in-line assembly was desirable because assembly provides the lowest human-readable interface to the machine, and allowed a talented assembly programmer to replace the built-in Pascal functions with code that was smaller or faster (or both). The user could single step through a program quite easily, and when they got to an assembler block, they could single step through that too. The user could add watches on variables and registers in an IDE window. Programs using IBM PC graphics mode could flip between graphics and text mode automatically or manually.

On top of all of the previous features, the IDE included a code profiler that could report on which parts of the program were using the most time. The books included with Borland Pascal had detailed descriptions of the Intel assembler language, going so far as to provide the clock cycles required of each instruction. Overall this system, as a whole, made for a relatively pleasant experience when trying to optimize code; the user never had to leave the IDE. This all worked ‘out of the box’ and was put together so simply that a high school student could use it.

Units[]

Over the years, Borland enhanced not only the IDE, but also the programming language. Borland’s dialect of Pascal became a de facto industry standard (and is still implemented by modern variants like Free Pascal), since ISO standard Pascal proved inadequate for real-world application development.

From version 4.0, the language introduced the concept of Units. Units were used as external function libraries, like the object files used in other languages such as C, but a little more high level (the programmer was able to define what will be visible outside the unit and what not).

Units in Borland’s Pascal were similar to Modula-2’s separate compilation system. In 1987 when Turbo Pascal 4.0 came out, Modula-2 was making inroads as an educational language which could replace Pascal. Borland, in fact, had a Turbo Modula-2 compiler, but this product ran only on CP/M and was never ported to MS-DOS (its user interface was almost identical to that of Turbo Pascal 3.x and earlier). Instead of porting their Modula-2 compiler to MS-DOS, Borland elected to implement separate compilation in their popular Pascal product. Separate compilation was not part of the standard Pascal language, but was already available in UCSD Pascal, which was very popular on 8-bit machines. Turbo Pascal syntax for units appears to have been borrowed from UCSD Pascal[1]. With earlier versions of Turbo Pascal, which ran on primitive PCs, the complexity of software written with the package did not demand it; but with the new ability to generate EXE files, programs of significant complexity were now possible which needed separate compilation.

Object oriented programming[]

From version 5.5 onwards some object oriented programming features were introduced: classes (confusingly called «objects»), inheritance, and constructors and destructors. The IDE was already augmented with an object browser interface showing relations between objects and methods and allowing the programmer to navigate the modules easily. Some people call these extensions Object Pascal although that is more commonly used as a name for the language underlying Delphi (which has two totally separate OOP systems).

Turbo Pascal 7 and Borland Pascal 7[]

The last version released was version 7. Borland Pascal 7 contained an IDE and compilers for creating DOS, extended DOS and Windows 3.x programs. Turbo Pascal 7 on the other hand could only create standard DOS programs. It also had a graphical API (the Graph unit) which supported multiple external drivers (BGI files — standing for Borland’s Graphics Interface) and provided a mechanism to link these drivers with the EXE, but as it was quite slow and caused unpleasant flickering, interchangeable visual pages were used, which caused overfilling the video memory. Some third party drivers, such as SVGA drivers, were made by fans, but they never gained big popularity, since next-generation tools like Borland C++ and Delphi were on their way at that time.

Windows versions[]

Two versions of Turbo Pascal for Windows 3.x were released: Turbo Pascal for Windows 1.0 (based on Turbo Pascal 6 but released about 2 years later), and 1.5 (released after Turbo Pascal 7). The Windows compiler included in Borland Pascal 7 was entitled Borland Pascal for Windows’ but presumably was from the same code base as TPW 1.5.

All versions built Windows-compatible programs, and featured a Windows-based IDE, as opposed to the traditional DOS-based IDE in Turbo Pascal. The IDE and editor commands conformed with Microsoft Windows user interface guidelines, instead of the classic TP user interface. The support for Windows programs required the use of the ObjectWindowslibrary, similar but different from (the first release of) the Borland C++ sister, radically different from the DOS Turbo Vision environment, and was launched quite late (1992), so it never achieved wide popularity, and was later eclipsed by Delphi.

Mac version[]

Borland released Turbo Pascal for Macintosh in 1985. Much like the PC version, it was written in very tight assembly language and had a very powerful IDE, but not a good debugger. Borland did not support this product very well. They did issue a version 1.1, patched to run on the 32-bit clean Macintosh II. The product was dropped not long after.

The CRT issue[]

The CRT unit of Turbo Pascal 7.0 (used by many fullscreen text mode applications) contains code in its initialisation section to determine the CPU speed for calibration of delay loops. Unfortuately this code fails to work properly on processors with a speed greater than about 200 MHz and quits with a Runtime error 200 because it uses 16-bit DIV, the result of which doesn’t fit into a 16-bit integer. The issue can be fixed either by patching the executable file or using a Terminate and Stay Resident program loaded before the problem executable (see link below).

Graphic[]

Turbo Pascal uses Borland Graphics Interface.

Sample Code[]

Notes:

  • Historically, Pascal comments are indicated { like this }, or (* like this *), but later versions of Borland Pascal also supported C++-style comments // like this.
  • The line uses crt; is a Borland specific extension to Pascal.
  • Borland’s Pascal is not case sensitive.

Samples:

  • This simple program prints the words «Hello World» on the screen.
BEGIN
 WriteLn('Hello World');
END.
  • This asks for a person’s name and prints it on the screen.
program WriteName;
VAR
 Name:string; { This declares the variable Name as a string }
BEGIN
 Write('Please give your name: ');
 Readln(Name); { Readln reads the string printed on the screen }
 WriteLn('Hello ', Name);
END.

External links[]

  • Borland (now Embarcadero) Developer Network Museum
  • Antique Software: Turbo Pascal version 5.5
  • French edition of Turbo Pascal 7
  • Turbo Pascal Internals
This article is featured; it’s one of the best articles at the Borland Pascal Wiki. Users who will compromise its status may be blocked.

Screenshot

Turbo Pascal is a complete development system that includes a compiler and an Integrated Development Environment (IDE) for the Pascal programming language running mainly on MS-DOS, developed by Borland under Philippe Kahn’s leadership. The name Borland Pascal was generally reserved for the high end packages (with more libraries and standard library source code) while the original cheap and widely known version was sold as Turbo Pascal. The name Borland Pascal is also used more generically for Borland’s dialect of Pascal.

Borland has released three versions of Turbo Pascal for free: versions 1.0, 3.02 and 5.5.

Motivation for Turbo Pascal[]

Philippe Kahn first saw an opportunity for Borland, his newly formed software company, in the field of programming tools. Historically, the vast majority of programmers saw their work flow in terms of the edit/compile/link cycle, with separate tools dedicated to each task. Programmers wrote code in a text editor, a compiler created object code from source (often requiring multiple passes), and a linker combined object code with runtime libraries to produce an executable program. This cycle was the result of limited computer power and small amounts of memory.

In the IBM PC market of the early 1980s, the major programmer tool vendors included IBM, Microsoft, and Lattice. They all made C compilers (and some made Pascal compilers), which all worked in a similar fashion. For example, the Microsoft Pascal system consisted of two compiler passes and a final linking pass (which could take minutes on systems with only floppy disks for secondary storage). This process was the cumbersome product of the extremely limited resources of the early IBM PC models. Vendors of software development tools aimed their products at professional developers, and the price for these basic tools plus ancillary tools like profilers ran into the hundreds of dollars.

Kahn’s idea was to integrate these separate functions in a programming toolkit, have it run with much better performance, and charge one low price for it all. Instead of selling the kit through established sales channels (retailers or resellers), his new tool would be sold inexpensively via mail-order. Turbo Pascal is generally considered to be the first popular Integrated Development Environment (IDE) of any type.

As an additional selling point against the bigger vendors, Turbo Pascal disks came with no copy protection of any sort. Turbo Pascal came with the famous «Book License»: «You must treat this software just like a book … may be used by any number of people … may be freely moved from one computer location to another». Since the first versions didn’t have online help, copy protection was effectively enforced by possession of the Turbo Pascal reference manual (pictured above).

Version history[]

The Turbo Pascal compiler is based on the Blue Label Pascal compiler originally produced for the NasSys cassette-based operating system of the Nascom microcomputer in 1981 by Anders Hejlsberg. This was first rewritten as the Compas Pascal compiler for the CP/M operating system and then as the Turbo Pascal compiler for DOS and CP/M. A version of Turbo Pascal was available for the Apple Macintosh from about 1986 but was eventually discontinued around 1992. Another version was available for the DEC Rainbow through several releases.

Version 1.0[]

See also Antique Software: Turbo Pascal v1.0. Borland licensed the PolyPascal compiler core, written by Anders Hejlsberg (Poly Data was the name of his company in Denmark), and added the user interface and editor. Anders joined the company as an employee and was the architect for all versions of the Turbo Pascal compiler and the first three versions of Borland Delphi.

Turbo Pascal 1.0 was very fast compared to other microcomputer Pascal compilers. Turbo Pascal 1.0 was not only fast but also compact due to the lack of EXE support — the compiler was a single COM file, about 38 kilobytes long. This file included the editor, compiler, linker, and all of the library routines. The edit/compile/run cycle was fast compared to other Pascal implementations, because everything related to building the program was stored in RAM. Writing a built program to disk was an additional menu option.

When the first version of Turbo Pascal appeared on November 20 1983, the type of IDE it used was relatively new. On its debut in the American market, Turbo Pascal retailed for USD$49.99. The integrated Pascal compiler also was of very good quality compared to other Pascal products of the time and was affordable above all. The «Turbo» name alluded to its compilation speed as well as the speed of the executables it produced. The speed of these «com» executable files was a revelation for developers whose only previous experience programming the PC was with Microsoft’s BASIC.

The IDE was incredible for its day, a day of extremely limited resources for the typical IBM PC. It was simple and intuitive, and it had a menu system that was well organized. Early versions used the WordStar control key layout, which was the de facto standard because of WordStar’s wide use. Later versions of the IDE, designed for later PCs with more disk space and memory, had the ability to instantly look up the definitions of the keywords of the language just by putting the cursor over a keyword and hitting the help button. The definitions also frequently included example code that used the keyword. This enabled the inexperienced programmer to learn Pascal simply by using the IDE, without actually requiring help from a book.

Later versions[]

Beginning with version 4.0, released in 1987, the compiler could generate executables in native EXE format under MS-DOS. (Previous versions could generate only COM files.) Along with this, support for the increasingly outdated CP/M operating system was dropped. This version also introduced the first full-screen user interface with pull-down menus. Prior to 4.0, the product had a text-based menu screen and a separate full-screen editor.

Version 5.x introduced the familiar Borland blue screen, which would be the trademark of the company’s MS-DOS compiler tools until the end of this line in the middle 1990s.

Later versions had the ability to easily integrate assembly language within Pascal. The addition of in-line assembly was desirable because assembly provides the lowest human-readable interface to the machine, and allowed a talented assembly programmer to replace the built-in Pascal functions with code that was smaller or faster (or both). The user could single step through a program quite easily, and when they got to an assembler block, they could single step through that too. The user could add watches on variables and registers in an IDE window. Programs using IBM PC graphics mode could flip between graphics and text mode automatically or manually.

On top of all of the previous features, the IDE included a code profiler that could report on which parts of the program were using the most time. The books included with Borland Pascal had detailed descriptions of the Intel assembler language, going so far as to provide the clock cycles required of each instruction. Overall this system, as a whole, made for a relatively pleasant experience when trying to optimize code; the user never had to leave the IDE. This all worked ‘out of the box’ and was put together so simply that a high school student could use it.

Units[]

Over the years, Borland enhanced not only the IDE, but also the programming language. Borland’s dialect of Pascal became a de facto industry standard (and is still implemented by modern variants like Free Pascal), since ISO standard Pascal proved inadequate for real-world application development.

From version 4.0, the language introduced the concept of Units. Units were used as external function libraries, like the object files used in other languages such as C, but a little more high level (the programmer was able to define what will be visible outside the unit and what not).

Units in Borland’s Pascal were similar to Modula-2’s separate compilation system. In 1987 when Turbo Pascal 4.0 came out, Modula-2 was making inroads as an educational language which could replace Pascal. Borland, in fact, had a Turbo Modula-2 compiler, but this product ran only on CP/M and was never ported to MS-DOS (its user interface was almost identical to that of Turbo Pascal 3.x and earlier). Instead of porting their Modula-2 compiler to MS-DOS, Borland elected to implement separate compilation in their popular Pascal product. Separate compilation was not part of the standard Pascal language, but was already available in UCSD Pascal, which was very popular on 8-bit machines. Turbo Pascal syntax for units appears to have been borrowed from UCSD Pascal[1]. With earlier versions of Turbo Pascal, which ran on primitive PCs, the complexity of software written with the package did not demand it; but with the new ability to generate EXE files, programs of significant complexity were now possible which needed separate compilation.

Object oriented programming[]

From version 5.5 onwards some object oriented programming features were introduced: classes (confusingly called «objects»), inheritance, and constructors and destructors. The IDE was already augmented with an object browser interface showing relations between objects and methods and allowing the programmer to navigate the modules easily. Some people call these extensions Object Pascal although that is more commonly used as a name for the language underlying Delphi (which has two totally separate OOP systems).

Turbo Pascal 7 and Borland Pascal 7[]

The last version released was version 7. Borland Pascal 7 contained an IDE and compilers for creating DOS, extended DOS and Windows 3.x programs. Turbo Pascal 7 on the other hand could only create standard DOS programs. It also had a graphical API (the Graph unit) which supported multiple external drivers (BGI files — standing for Borland’s Graphics Interface) and provided a mechanism to link these drivers with the EXE, but as it was quite slow and caused unpleasant flickering, interchangeable visual pages were used, which caused overfilling the video memory. Some third party drivers, such as SVGA drivers, were made by fans, but they never gained big popularity, since next-generation tools like Borland C++ and Delphi were on their way at that time.

Windows versions[]

Two versions of Turbo Pascal for Windows 3.x were released: Turbo Pascal for Windows 1.0 (based on Turbo Pascal 6 but released about 2 years later), and 1.5 (released after Turbo Pascal 7). The Windows compiler included in Borland Pascal 7 was entitled Borland Pascal for Windows’ but presumably was from the same code base as TPW 1.5.

All versions built Windows-compatible programs, and featured a Windows-based IDE, as opposed to the traditional DOS-based IDE in Turbo Pascal. The IDE and editor commands conformed with Microsoft Windows user interface guidelines, instead of the classic TP user interface. The support for Windows programs required the use of the ObjectWindowslibrary, similar but different from (the first release of) the Borland C++ sister, radically different from the DOS Turbo Vision environment, and was launched quite late (1992), so it never achieved wide popularity, and was later eclipsed by Delphi.

Mac version[]

Borland released Turbo Pascal for Macintosh in 1985. Much like the PC version, it was written in very tight assembly language and had a very powerful IDE, but not a good debugger. Borland did not support this product very well. They did issue a version 1.1, patched to run on the 32-bit clean Macintosh II. The product was dropped not long after.

The CRT issue[]

The CRT unit of Turbo Pascal 7.0 (used by many fullscreen text mode applications) contains code in its initialisation section to determine the CPU speed for calibration of delay loops. Unfortuately this code fails to work properly on processors with a speed greater than about 200 MHz and quits with a Runtime error 200 because it uses 16-bit DIV, the result of which doesn’t fit into a 16-bit integer. The issue can be fixed either by patching the executable file or using a Terminate and Stay Resident program loaded before the problem executable (see link below).

Graphic[]

Turbo Pascal uses Borland Graphics Interface.

Sample Code[]

Notes:

  • Historically, Pascal comments are indicated { like this }, or (* like this *), but later versions of Borland Pascal also supported C++-style comments // like this.
  • The line uses crt; is a Borland specific extension to Pascal.
  • Borland’s Pascal is not case sensitive.

Samples:

  • This simple program prints the words «Hello World» on the screen.
BEGIN
 WriteLn('Hello World');
END.
  • This asks for a person’s name and prints it on the screen.
program WriteName;
VAR
 Name:string; { This declares the variable Name as a string }
BEGIN
 Write('Please give your name: ');
 Readln(Name); { Readln reads the string printed on the screen }
 WriteLn('Hello ', Name);
END.

External links[]

  • Borland (now Embarcadero) Developer Network Museum
  • Antique Software: Turbo Pascal version 5.5
  • French edition of Turbo Pascal 7
  • Turbo Pascal Internals

11

Среда программирования
Borland
Pascal

Система
программирования Borland
Pascal
представляет собой единство двух начал:

  • компилятора
    с языком программирования Pascal

  • инструментальной
    программной оболочки.

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

Для вызова системы Borland
Pascal следует дать
команду bp <Enter>:

По этой команде операционная система
запустит на исполнение программу из
файла bp.exe:
загрузит программу в оперативную
память и передаст ей управление.

После успешного вызова системы экран
компьютера приобретает вид:

Второй вариант запуска (если нужно
продолжить редактирование существующей
программы или исполнить существующую
программу): установить курсор на
программу, набрать bp<пробел><Ctrl+
Enter><Enter>:

Тогда, в отличие от первого способа,
будет дополнительно загружен текст
программы:

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

Вся остальная часть экрана принадлежит
окну редактора. Новому файлу присваивается
имя noname00.pas.

В среде Borland
Pascal можно работать
одновременно с несколькими программами,
каждая из которых может располагаться
в отдельном окне редактора.

Кроме окна редактора, используются
следующие окна:

  • отладочного режима,

  • вывода результатов работы программы,

  • справочной службы, и т.д.

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

Подменю главного
меню

Меню File:

Меню Edit:

Меню Search:

Меню Run:

Меню Compile:

Меню Debug:

Меню Tools:

Меню Options:

Меню Window:

Меню Help:

Функциональные
клавиши

Функциональные клавиши используются
для управления средой Borland
Pascal. Они обозначаются
F1, F2,
… , F12 и
располагаются в верхнем ряду клавиатуры.

Действия почти всех функциональных
клавиш можно модифицировать тремя
особыми клавишами: Alt
(дополнительный), Ctrl
(управление), Shift
(сдвиг). Назначения основных функциональных
клавиш:

F1
обратиться за справкой к встроенной
справочной службе (Help
— помощь);

F2 — запись
редактируемого текста в дисковый файл;

F3
прочитать текст из дискового файла в
окно редактора;

F4
используется в отладочном режиме;

F5
распахнуть активное окно на весь экран;

F6 — сделать
активным следующее окно;

F7
используется в отладочном режиме;

F8
используется в отладочном режиме;

F9
компилировать программу, но не выполнять
ее;

F10
`перейти к диалоговому выбору режима
работы с помощью главного меню;

Ctrl+F9
— выполнить прогон программы, компилировать
программу, находящуюся в редакторе,
загрузить ее в оперативную память и
выполнить, после чего вернуться в среду
Borland
Паскаля;

Alt+F5
— сменить окно редактора на окно вывода
результатов работы программы.

Порядок работы
с
Pascal–программой

1. Набор текста программы. Текстовый
редактор среды Borland
Pascal предоставляет
пользователю удобные средства создания
и редактирования текстов программы. Из
режима редактирования можно перейти к
любому другому режиму работы Borland
Pascal с помощью
функциональных клавиш или выбора нужного
режима из главного меню.

Для перехода из главного меню в состояние
редактирования нужно нажать клавишу
Esc, а для перехода
к выбору из главного меню — F10.

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

Окно редактора имитирует длинный и
достаточно широкий лист бумаги, фрагмент
которого виден в окне.

Окно можно смещать относительно листа
с помощью клавиш:

  • PgUp — на страницу
    вверх,

  • PgDn — на страницу
    вниз,

  • Home — в начало
    текущей строки,

  • End — в конец
    текущей строки,

  • Ctrl+PgUp
    – в начало текста,

  • Ctrl+PgDn
    – в конец текста.

При ошибке набора очередного символа,
его можно стереть с помощью клавиши
Backspace. Клавиша Del
стирает символ, на который в данный
момент указывает курсор. Команда Ctrl+Y
удаляет всю строку, на которую указывает
курсор. Команда Ctrl+Q+L
восстанавливает текущую строку
(действует, если курсор не покидал
измененную строку).

Начальный режим работы редактора —
режим вставки. Редактор также может
работать в режиме наложения. Переключает
эти режимы клавиша Insert.

Обычно редактор работает в режиме
автоотступа. В этом режиме каждая новая
строка начинается в той же позиции на
экране, что и предыдущая. Отказ от
автоотступа — команда Ctrl+O+I.
Повтор этой команды восстанавливает
режим автоотступа.

Команды работы с блоками:

  • Ctrl+K+B
    — пометить начало блока,

  • Ctrl+K
    — пометить конец блока,

  • Ctrl+K+Y
    — стереть блок,

  • Ctrl+K+C
    — копировать блок,

  • Ctrl+K+V
    — переместить блок,

  • Ctrl+K+W
    — записать блок в дисковый файл,

  • Ctrl+K+R
    — прочитать блок из дискового файла,

  • Ctrl+K+P
    — напечатать блок.

2. Запись программы на диск. Основной
формой хранения текстов программ вне
среды являются файлы. Если вы создали
новую программу, то среда Borland
Pascal еще не знает
такого файла. Сохранить текст программы
можно двумя способами:

  1. Нажать функциональную клавишу F2.

  2. Войти в главное меню (клавиша F10),
    выбрать команду File
    и в появившемся подменю команду Save
    или Save as.

На экране появится небольшое окно
запроса с надписью в верхней части: Save
File as
(сохранить файл с именем).

Ниже надписи располагается поле для
ввода имени файла, в которое можно
написать любое имя и нажать клавишу
Enter. Текст будет
сохранен.

3. Компиляция программы. Откомпилировать
программу можно двумя способами:

  1. Нажать комбинацию клавиш Alt+F9.

  2. Войти в главное меню (клавиша F10),
    выбрать команду Compile
    и в появившемся подменю команду Compile.

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

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

  1. Нажать комбинацию клавиш Ctrl+F9.

  2. Войти в главное меню (клавиша F10),
    выбрать команду Run
    и в появившемся подменю команду Run.

Если во время выполнения программы
обнаружена ошибка, среда прекращает
дальнейшие действия, восстанавливает
окно редактора и помещает курсор на ту
строку программы, где была обнаружена
ошибка. Сложные ошибки выявляются с
помощью пошагового исполнения программы,
связанного с клавишами F4,
F7, F8.

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

  1. Нажать комбинацию клавиш Alt+F5.

  2. Войти в главное меню (клавиша F10),
    выбрать команду Run
    и в появившемся подменю команду User
    Screen.

5. Выход из системы Borland
Pascal.
Выйти из среды Borland
Pascal можно:

  1. Нажав комбинацию клавиш Alt.

  2. Войти в главное меню (клавиша F10),
    выбрать команду File
    и в появившемся подменю команду Exit.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]

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

Системой программирования является …

  • Adobe Dreamweaver
  • Borland Delphi
  • Abbyy FineReader
  • CorelDraw

Тип вопроса: Вопрос с одним правильными вариантом

Ответ на этот вопрос уже получили: 2 раз(а)

Помогли ответы? Ставь лайк 👍

Вопрос задал(а): Анонимный пользователь, 19 Апрель 2016 в 16:55
На вопрос ответил(а): Бунакова Мария, 19 Апрель 2016 в 16:55

Like this post? Please share to your friends:
  • Системный файл в ос windows имеет расширение
  • Системный трей на двух мониторах windows 10
  • Системный таймер в диспетчере устройств windows 10
  • Системный таймер windows 10 что это
  • Системные прерывания грузят процессор windows 10 на 100 исчезают