Board index » delphi » Pascal code analyzer...where?
grif...@magicnet.net (Michael Griffin)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
grif...@magicnet.net (Michael Griffin)
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Pascal code analyzer...where?I'm looking for software that will "analyze" my Pascal files and give me information like this: 1. Which variables are not being used We have a directory (BP7) that contains more than 150 source files that are all part of a single application. Obviously, it'd be great to have something that would tell us these things and help to maintain it. Anyone seen anything like this? I wish we could run the old FoxDoc program (came with FoxPro) on it -- FoxDoc produced very informative reports. Michael Griffin |
Ronny Marinuss
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Pascal code analyzer...where?QuoteMichael Griffin wrote: what you ask. I believe it was delivered with TP 6.0. Maybe you can get it directly from Borland. Ronny Marinusse |
Glenn Grotzing
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Pascal code analyzer...where?Quotegrif...@magicnet.net (Michael Griffin) wrote: Quote> 3. Procs/funcs that are not used What kind of need might there be for such a program? I might consider |
Michael Griff
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Pascal code analyzer...where?Since Michael Hermann asked, here's what I'd envision as the input and output for such a program: Input (on command line): > panalyze *.pas /out=outfile.lis Output (into file outfile.lis): Function/Procedure Display_Sensor_Info Shutdown_Probe1 This output tells me that the Function or Procedure "Get_Data" is defined in Program1.pas and is called (referenced) in two procedures (named Read_User_File and Process_New_User_File) in Program2.pas and one procedure in Program3.pas. It also tells me that "Shutdown_Probe1" isn't used at all -- it's only defined. Of course, it would help if the listing was alphabetized by Function/Proc name. That is, in this list "Get_Data" and "Display_Sensor_Info" would swap places. I'll leave a note for Borland asking them if they have anything similar. The Turbo Profiler doesn't do this -- it provides an analysis of a running program and includes mostly timing information. Michael Griffin |
horri..
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Pascal code analyzer...where?Quote>grif...@magicnet.net (Michael Griffin) wrote: Quote>> 1. Which variables are not being used lots more. It has been one of my better investments (see www.turbopower.com). I wish they would update it so it ran my delphi code properly - the new keywords confuse it. Mark Horridge |
Mikkel Breil
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Pascal code analyzer...where?Hello Glenn! GG> @RFC.Gate: Thu, 19 Sep 96 22:53:58 GG> From: ggr...@internetland.net (Glenn Grotzinger) GG> grif...@magicnet.net (Michael Griffin) wrote: >> I'm looking for software that will "analyze" my Pascal files and give me >> 1. Which variables are not being used GG> Callers? Meaning what calls the functions? >> 3. Procs/funcs that are not used GG> What would 4 look like for output as a key? How about a tree starting from left going to the right. GG> What kind of need might there be for such a program? I might I think I could use that, remember to include support for units which are Regards Mikkel Breiler, Cosysop Renoz BBS, Amateur Lego Technic engineer |
Selom Ofo
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Pascal code analyzer...where?QuoteMichael Griffin (grif...@magicnet.net) wrote: procedure, variables etc. but it seems you can only use it efficiently if you programmed in OOP. ---------------------------------------------------------------------- Email address: sof...@chat.carleton.ca |