Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Absolute Vs. Relocatable object code and listings

2006-05-20 by jayasooriah

--- In lpc2000@yahoogroups.com, "bobtransformer" <bgudgel@...> wrote:

> Whatever happened to absolute code listings ? Are they a thing of the
> past now ?

The compiler generates relocatable object modules.  Thus the listing
it generates only shows relative addresses.

Most simulators and emulators depend on debug symbols in the
relocatble object modules which are invariably generated by the
compiler itself.

> The simulators and emulators certainly show absolute code locations.

You can disassemble the output of the linker to produce a listing with
absolute addresses.

> How do they (linkers) locate the executable at "upload time" ?

Linker combines relocatable objects to produce the final image at link
time.  This final image is loaded by the simulator/emulator

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.