delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/13/13:39:37

Message-ID: <34929540.231C7ABF@gmx.net>
Date: Sat, 13 Dec 1997 15:01:36 +0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
MIME-Version: 1.0
To: Steve Parlet <sjparlet AT rmi DOT net>
CC: DJGPP Mailing list <djgpp AT delorie DOT com>
Subject: Re: program listings
References: <01bd0736$1d4dac60$214c5da6 AT sjparlet>

Steve Parlet schrieb:
> 
> addresses.  How can I get the compiler to spit out listings with absolute
> addresses for my debugging purposes?

This will not be possible, since the absolute adresses are unknown
to the compiler. Compiling and linking are two distinct tasks and
the absolute adresses are known _ONLY_ when linking (otherwise
we won´t need a linker :-)

The only solution for you would be to tell the linker to
output a linker map-file, where all the absolut adresses of
your functions are listed and then writing a program, which
adjusts the realtive addresses in your assembler listings by
simply adding the start address of each function to its realive
ones.

Robert
-- 
******************************************************
* email:   Robert Hoehne <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************


- Raw text -


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