delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/12/01/10:36:32

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Software
Date: 1 Dec 2000 15:28:26 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 21
Message-ID: <908g2q$dv4$1@nets3.rz.RWTH-Aachen.DE>
References: <908e7o$npj$1 AT venus DOT telepac DOT pt>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 975684506 14308 137.226.32.75 (1 Dec 2000 15:28:26 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 1 Dec 2000 15:28:26 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Paulo J. Matos aka PDestroy <pdestroy AT netcabo DOT pt> wrote:
> Hi, Is there any software that will scan my C program and warn me about any
> not freed memory, not closed file descriptor, etc?

Doing analyses of that kind statically (i.e. by looking at the C
sources) is hard or impossible. You usually have to do it at runtime,
by putting a layer of abstraction between malloc() & friends and the
target program that adds various types of checking.

YAMD is one of the tools that do this.

> I've heard about lint but I don't know what it does or even if there
> is lint for DOS/WINDOWS.

There are several, I think.  But none of them is available for free or
compatible with DJGPP, AFAIK.


-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019