![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-54939563x1.png)
3
–p and –pg
The
Using the -p Option
To generate an execution profile using the
1.Compile with the
2.Run a.out, which produces a mon.out executable file.
3.Type prof a.out. The program prints a profile.
Using the -pg Option
To generate an execution profile using the
1.Compile with the
2.Run a.out, which produces a gmon.out executable file, a more sophisticated profiling tool than mon.out.
3.Type gprof a.out. The program prints a profile.
–pic, -Kpic and –PIC, -KPIC
The
The size of the global offset table is limited to 8Kbytes with
For more information on PIC, see the section on shared libraries in the Solaris documentation.
The Pascal Compiler | 39 |