Re: Detecting Reads of Global Uninitialized Variables
- From: "Alexei A. Frounze" <alexfru@xxxxxxx>
- Date: Fri, 30 Sep 2005 10:28:18 +0400
"Jack Klein" <jackklein@xxxxxxxxxxx> wrote in message
news:66apj19nquhm3goov2833p0i40viitkj78@xxxxxxxxxx
> On Fri, 30 Sep 2005 03:53:22 +0400, "Alexei A. Frounze"
> <alexfru@xxxxxxx> wrote in comp.lang.c:
> > > <jyu.james@xxxxxxxxx> wrote in message
> > > news:1128034028.587595.231600@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > > > I'm trying to detect reads of uninitialized global variables (that
are
> > > > declared in one file, and used in another as an extern).
> > > > Is there a tool out there that can do this? Or is there a
particular
> > > > technique that can be used to automate this?
> > >
> > If these variables are grouped into a special section, it might be
possible
> > to trap on each and every access to the pages in which the section lies.
It
> > may not be easy to do, though, or not easy to find everything if you
have
> > many variables in there and need to stop every time... Just an idea...
>
> To quote "Alexei A. Frounze" <alexfru@xxxxxxx> in comp.lang.c:
> > This is off topic for comp.lang.c.
> > Alex
>
> I'm having trouble implementing your suggestion on a C program running
> on an 8051.
>
> And what does your answer have to do with standard C, which knows
> nothing of 'special sections' or 'pages'?
Thank you, Jack.
Alex
.
- References:
- Re: Detecting Reads of Global Uninitialized Variables
- From: Mike Wahler
- Re: Detecting Reads of Global Uninitialized Variables
- From: Alexei A. Frounze
- Re: Detecting Reads of Global Uninitialized Variables
- Prev by Date: Re: Global variables
- Next by Date: Assembler vs Compiler vs Linker
- Previous by thread: Re: Detecting Reads of Global Uninitialized Variables
- Next by thread: Re: Detecting Reads of Global Uninitialized Variables
- Index(es):
Relevant Pages
|