norm_guid-e (1158379)
Текст из файла
44
§Norma Compiler
User guide
October 1999
Keldysh Institute of Applied Mathematics
Russia Academy of Sciences
Table of contents
1 Writing source program text on the Norma language 2
2 Translation from the Norma language into the Fortran DVM 2
3 Analyzing listing, error messages and warning messages 3
4 Translation and running the target programs on the Fortran DVM language 3
The process of developing and running programs on the Norma language consists of the next steps:
-
writing source program text;
-
translation from the Norma language into the Fortran DVM;
-
analyzing listing, error messages and warning messages;
-
translation and running target programs on the Fortran DVM language.
1Writing source program text on the Norma language
The source program’s text may be developed using any text editor. This editor must allow saving text program in file “as it is” without any special codes or commands. The program’s text must be saved into the file with *.hop extension.
2Translation from the Norma language into the Fortran DVM
Type in the command line to run the Norma-translator:
dvm <parameter> <file_name> <options>
where:
| <parameter> | ::= | [ ndv | n ] |
Parameter ‘ndv’ determines, that the source program only will be translated into the target language. Parameter ‘n’ determines, that the source program will be translated into the target language and then, if there are no errors, Fortran DVM compiler will be started.
Option ‘dvm’ is set by default and determines that target program must be on the Fortran DVM language.
Option ‘f-77’ determines that target program must be on the Fortran 77 language (consecutive program).
Options ‘dvm’ and ‘f-77’ can’t be set together.
Option ‘length=<integer>’ determines the highest possible identifier’s length in the target program. All the identifiers with length more than that will be truncated to the highest possible length. Default highest possible length is 6.
Norma-translator must print listing on the screen and save it into file <file_name>.lst. If there are no errors, it must create target file <file_name>.fdv (in the case that the target program is on the Fortran DVM language) or <file_name>.for (in the case that the target program is on the Fortran 77 language). The result of translation is the program on the Fortran DVM language or on the Fortran 77 language accordingly. This files are created in the current directory.
For example, the source Norma program text is in file prog.hop, the target program must be on the Fortran DVM language, and the identifiers highest possible length must be 8, the command to run translator may be in the form:
dvm ndv prog dvm length=8
The result of translator’s work (files prog.lst and prog.dvm) will be created in the current directory.
In the case of any translator’s internal error the following message will be put on the screen:
RULEX ABNORMAL STOP <error code> AT STEP <step number>
REFAL-M ERROR: <error description>
In function <function name>
With Entry: <function arguments>
Please report the translator’s developers about it. Please attach the source program’s text on the Norma language and the error message given above.
3Analyzing listing, error messages and warning messages
Listing contains source program text on the Norma language and target program text on the Fortran DVM language. If some errors are found in the Norma program, the target program text isn’t generated. All errors and warnings are in the text form. If error or warning belongs to any line of the program, they are placed into the listing right after this line. Otherwise, if error or warning belong44s to whole part, they are placed into the listing right after this part. The summary of part’s errors and warnings and the part’s translation time are placed into the listing after the part. The total amount of errors, warnings in the all parts of translated program and total translation time are placed at the end of listing.
4Translation and running the target programs on the Fortran DVM language
Target file <file_name>.fdv is a program on the Fortran DVM language. It translation and running must be performed like for any other Fortran DVM program. See User Guide for Fortran DVM.
If parameter ‘n’ was used and there are no errors during translation from the Norma language, Fortran DVM translator will be started automatically.
Target program must be executed on the same processor’s matrix as has been determined in the DISTRIBUTION INDEX directive of the source Norma program.
Характеристики
Тип файла документ
Документы такого типа открываются такими программами, как Microsoft Office Word на компьютерах Windows, Apple Pages на компьютерах Mac, Open Office - бесплатная альтернатива на различных платформах, в том числе Linux. Наиболее простым и современным решением будут Google документы, так как открываются онлайн без скачивания прямо в браузере на любой платформе. Существуют российские качественные аналоги, например от Яндекса.
Будьте внимательны на мобильных устройствах, так как там используются упрощённый функционал даже в официальном приложении от Microsoft, поэтому для просмотра скачивайте PDF-версию. А если нужно редактировать файл, то используйте оригинальный файл.
Файлы такого типа обычно разбиты на страницы, а текст может быть форматированным (жирный, курсив, выбор шрифта, таблицы и т.п.), а также в него можно добавлять изображения. Формат идеально подходит для рефератов, докладов и РПЗ курсовых проектов, которые необходимо распечатать. Кстати перед печатью также сохраняйте файл в PDF, так как принтер может начудить со шрифтами.















