www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/12/23/08:06:37

Date: Mon, 23 Dec 1996 15:00:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Daniel Everton <evos AT m140 DOT aone DOT net DOT au>, djgpp-workers AT delorie DOT com,
DJ Delorie <dj AT delorie DOT com>, Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Subject: Re: Problems with -pg switch in GCC
In-Reply-To: <Pine.SUN.3.91.961223131805.2167D-100000@is>
Message-ID: <Pine.SUN.3.91.961223145608.2338C-100000@is>
MIME-Version: 1.0

On Mon, 23 Dec 1996, I wrote:

> Yes, it happens to me too.  Programs compiled with -pg crash.  I wasn't
> able until now to determine why.

I've looked closer at mcount.c and I think I've found the reason: `mcount'
calls `_mono_printf'.  Since most systems don't have an additional mono 
display, they will crash if they run in V86 mode, where the mono video RAM 
is remapped by the memory manager.  Is that call to `_mono_printf' there 
for a purpose, or is it just a left-over from some debugging session?

When I ifdef'ed away that call, the profiled program worked as 
advertised on a system with a single color monitor.

- Raw text -


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