APPLICATIONSPROGRAMMATION ★ BORDAND - TURBO MODULA 2|8000Plus) ★

Bordand - Turbo Modula 2Applications Programmation
 ★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se le presenta en su versión original ★ 
 ★ Dieser Text wird in seiner ursprünglichen Fassung Ihnen präsentiert ★ 

Turbo Pascal became a 'cult' programming language. Will the same happen to the latest release from Borland International?

If you'e using your PCW for 'serious' programming, rather than this mamby-pamby BASIC or Logo stuff, you might like to consider a ‘real' language. Pascal's successor in the structured programming world is Modula 2. It's a language which produces fast, compiled programs, but is quicker to use than many, since it produces interdependent ‘modules'.

Turbo Modula 2, like many computer languages, is a rather ephemeral product. You receive a disc and a doorstop of a manual, but little in the way of the fancy packaging that you normally expect with software releases. What you're buying is not the paper or plastic of the physical product, but the facility to produce fast and useful programs in a compact and flexible version of a modern computer language.

Turbo Modula 2 runs from CP/M, like Mallard BASIC, but unlike Mallard it comes complete with a full screen editor, and its own operating environment. As well as adapting the compiler to your own needs, you can display directories, and copy, rename and delete files without having to leave Modula 2.

The Editor

The editor is quite closely based on WordStar, but cut down to leave only the functions likely to be of use to a programmer. So, for instance, you can search and replace a variable name with another, scroll or page through your program, copy blocks of commands from one place to another and read in sections of program from other files. It makes program writing a lot more enjoyable.

The compiler

Once you've written the program, you need to compile it. Turbo Modula 2 compiles quite quickly, though not as fast as its Pascal stablemate. Where it wins over Turbo Pascal, though, is in its facility to incorporate previously compiled modules of program, rather than having to compile everything each time a minor alteration is made.

Turbo Modula 2 can compile to 'M' code, which is a sort of half-way house between the program you write and machine-code, or go on to produce a faster machine-code file which can be run straight from CP/M. The advantage of using 'M' code, certainly while developing a program, is that it takes up much less room.

If the compiler finds an error in your program while it's compiling, it calls up the editor and positions the cursor at the offending point in the code. Once you've fixed the problem, the compiler starts up again from just before the error. In short, alot has been done to make program development as easy as possible.

The programs

A program in Modula 2 consists of keywords, variable names, numbers and operators (like and I), Many of the keywords themselves, however, are not included in the language! Modula 2 includes a basic set of commands, and any others are supplied in a 'library' of pre-defined modules, When you want to use a keyword out of one of these modules, you use the statement:

FROM modulename IMPORT keyword1, keyword2 etc

  Program 1
sec bytes
Program 2
sec bytes
Mallard BASIC 44 94 4 150
Turbo Modula 'M' code 16 56 4 92
Turbo Modula ‘native' code 15 89 3 192
Turbo Modula COM file 13 <9728 2 <17024

This system means that the language can be extended simply by adding extra modules with the programs for specialist keywords in them. Clever, eh?

In the time available for review, it was only possible to test the compiler on fairly short programs, of which two of the shortest are listed here. You can see that there's a dramatic speed improvement even when writing characters on the screen, which is normally governed more by CP/M itself than by the programming language.

Verdict

If you liked Turbo Pascal, you'll love Turbo Modula 2, As well as the improvements in Modula over Pascal, the Turbo system has been enhanced to provide what must be the best programming environment in CP/M today.

8000Plus

★ PUBLISHERS: BORLAND , GREY MATTER
★ YEAR: 1987
★ CONFIG: ???
★ LANGUAGE:
★ AUTHOR(S): ???

Page précédente : Bordand - Turbo Modula
★ AMSTRAD CPC ★ DOWNLOAD ★

File:
» Borland  Turbo  Modula  2DATE: 2013-09-03
DL: 5 fois
TYPE: ZIP
SIZE: 303Ko

Je participe au site:
» Newfile(s) upload/Envoye de fichier(s)
★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » Mc Tracer (CPC Amstrad International)
» Applications » LOGO Turtle-Graphics Interpreter
» Applications » Turbo Super Monitor Razormaid Mix
» Applications » Memedit (Popular Computing Weekly)
» Applications » CHARLEYTRONIC of System-D Source Code Collection
» Applications » Applications programmation

QUE DIT LA LOI FRANÇAISE:

L'alinéa 8 de l'article L122-5 du Code de la propriété intellectuelle explique que « Lorsque l'œuvre a été divulguée, l'auteur ne peut interdire la reproduction d'une œuvre et sa représentation effectuées à des fins de conservation ou destinées à préserver les conditions de sa consultation à des fins de recherche ou détudes privées par des particuliers, dans les locaux de l'établissement et sur des terminaux dédiés par des bibliothèques accessibles au public, par des musées ou par des services d'archives, sous réserve que ceux-ci ne recherchent aucun avantage économique ou commercial ». Pas de problème donc pour nous!

CPCrulez[Content Management System] v8.75-desktop/c
Page créée en 087 millisecondes et consultée 42 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.