home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
351.lha
/
ProcCheck_v1.1
/
ProcCheck.doc
< prev
next >
Wrap
Text File
|
1990-03-09
|
4KB
|
54 lines
ProcCheck is public domain. Use it any way you see fit, but please
leave my name and E-Mail address in both the source code and
executables throughout all revisions. If you make any enhancements,
I would appreciate hearing about it. Thank you.
ProcCheck.mod V1.0 (12-Sept-1989) by David Czaya
V1.1 (15-Feb-1990) cleaned up a bit and tried
to make the code semi-generic
for portability.
E-mail: CIS 73445,407
PeopleLink -Dave-
GEnie DCzaya
Originally written in "Benchmark Modula 2" for the Amiga! I tried
to use standard Modula 2 procedures (with certain exceptions) so
that this code could be easily ported to other implementations and
machines. Most machine specifics are marked.
ProcCheck (PROCEDURE CHECK) is a PRE-COMPILE utility which
scans through Modula 2 source code and attempts to pick out all
the procedures that have been referenced. It then divides the
procedures into the following categories:
1) Undeclared Procedures - very useful before compiling. Tells
you which procedures have been used, but not IMPORTed or
defined.
2) Unused Procedures - shows procedures which have been IMPORTed
or defined, but never called. Excellent for cleaning up the
code.
3) Standard Identifiers, Internal procedures and IMPORTed
procedures are all identified and the number of calls made to
each is recorded. This is handy for optimizing your code. You can
tell at a glance whether certain procedures are being overworked,
etc.
One of these days, I might make it parse out internal variables,
constants, enumerations, etc. Let me know if you're interested.
Oh, and it timestamps the report file, of course.
Caveats: ProcCheck is not the greatest code parser in the world.
It's not too difficult to confuse it into picking up or
missing information depending on your style of writing.
Nevertheless, it's output is not critical and it should
be somewhat useful.