Mail Archives: djgpp/1998/01/27/04:30:21
Oscar Iommi Campbell wrote:
>
> I've been away from djgpp programming a few months, using VC++ 5.
> However today a I sat down to finish of an old GUI I was making in
> djgpp. The problem is when I debug some variables are said to be 'not
> available' though they exist right in front of my eyes. Sometimes they
> evaluate but to another value then the real one ('monitored' with
> fprint). Another bug also raises when I compile with -m486, in a place
> which isn't exactly a critical dangerous code place..
>
> Has my djgpp/rhide freaked out somehow??
No :-)
Compile your code without optimizations.
In the past it was said that compilers could not optimize the code and
produce debugging information. Stallman and Kenner were able to
integrate both at the same time in the gnu compiler which djgpp uses.
But some sacrifices had to be made. This means that local variables can
get "optimized out" and that they can acquire other values other than
the value that was last explicitely assigned to them.
> BTW, I've always runned rhide in a dosbox, it compiles 10-20 times
> slower in real dos!??.
use SMARTDRV.EXE
--
\ Vik /-_-_-_-_-_-_/
\___/ Heyndrickx /
\ /-_-_-_-_-_-_/
- Raw text -