HP SunSoft Pascal 4.0 Instrukcja Użytkownika Strona 284

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 333
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 283
260 Pascal 4.0 Users Guide
A
The %list Directive
The %list directive enables a listing of the program.
Syntax
%list;
The module unit,
include_mod.p
module include_mod;
define
global, proc;
%include 'extern.h';
procedure proc;
begin
writeln('From PROC : ',global);
global := global + 1;
end; { proc }
Theinclude file, include.h var
global : integer;
procedure proc; extern;
The commands to compile and
execute ext_prog.p and
ext_mod.p
hostname% pc -xl include_prog.p include_mod.p
include_prog.p:
include_mod.p:
Linking:
hostname% a.out
From MAIN, before PROC:1
From PROC : 1
From MAIN, after PROC:2
Przeglądanie stron 283
1 2 ... 279 280 281 282 283 284 285 286 287 288 289 ... 332 333

Komentarze do niniejszej Instrukcji

Brak uwag