home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.arch
- Path: sparky!uunet!munnari.oz.au!uniwa!DIALix!metapro!bernie
- From: bernie@metapro.DIALix.oz.au (Bernd Felsche)
- Subject: Re: Program behaviour (was Re: trapping speculative ops
- Message-ID: <1992Sep1.084006.19765@metapro.DIALix.oz.au>
- Organization: MetaPro Systems, Perth, Western Australia
- References: <1992Aug27.202845.10747@bcars64a.bnr.ca> <k7D9PB1w165w@tsoft.sf-bay.org> <34740@cbmvax.commodore.com>
- Date: Tue, 1 Sep 92 08:40:06 GMT
- Lines: 39
-
- jesup@cbmvax.commodore.com (Randell Jesup) writes:
-
- >bbs.dennis@tsoft.sf-bay.org (Dennis Yelle) writes:
- >>schow@bqneh3.bnr.ca (Stanley T.H. Chow) writes:
- >>> Some people (including me), believe that there is only *one* level
- >>> of optimization. One should always ship the same binary that one
- >>> tested;
-
- >>I agree. This is why I am annoyed that most linkers put the
- >>debug information in the executable file. I think that the
- >>debug information should be put in a different file (ending with .dbg
- >>perhaps). Then I could test, debug, and ship EXACTLY the same binary.
-
- > However, adding some types of debug information can modify the
- >generated code, so you have to be careful about it (know your linker/
- >compiler/debugger and it's habits). Good linkers have the ability to
- >strip debug information out of an executable for shipping, without modifying
- >the code you debugged.
-
- There are some commercial compilers/linkers which always
- generate the same code, independent of any debug option.
-
- They typically write out a .dbg file which allows you to
- debug optimised code, and you can be sure that the optimised
- version which you ship actually works -- or you can find the
- problem caused by the compiler optimisation. There is no
- subsequent need to strip out debug info, and depending on
- the linker/compiler, the symbol table information.
-
- The .dbg file contains pointers into the executeable code.
- A special debugger is of course required.
-
- Can you suggest what sort of debug info would need to be
- in the binary?
- --
- +-----+ Bernd Felsche _--_|\ #include <std/disclaimer.h>
- | | | | MetaPro Systems Pty Ltd / \ bernie@metapro.DIALix.oz.au
- | | | | 328 Albany Highway, X_.--._/ Fax: +61 9 472 3337
- |m|p|s| Victoria Park, Western Australia 6100 v Phone: +61 9 362 9355
-