Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #1449

Re: ELF and DWARF tools ?

From C Bergström <cbergstrom@pathscale.com>
Newsgroups comp.compilers
Subject Re: ELF and DWARF tools ?
Date 2014-12-29 13:22 +0700
Organization Compilers Central
Message-ID <14-12-006@comp.compilers> (permalink)
References <14-12-005@comp.compilers>

Show all headers | View raw


On Mon, Dec 29, 2014 at 12:42 PM, John R. Levine <johnl@iecc.com> wrote:
>
> I am working on a project which involves building a compiler toolchain for
> yet another architecture.  The obvious object format to use is ELF and
> DWARF, and I'm trying to figure out the least painful way to do that. ...

The llvm family of code is becoming more complete in terms of a full
GNU replacement. That isn't the land of python, but you're going to
have to go outside of that anyway for actual compiler/toolchain work.
(LLVM has a builtin DWARF parser)

I'm not a fan of llvm, but the codebase does have a "not bad" design
in terms of ease of portability. Assuming your arch isn't VLIW I
wouldn't expect too much hell.

If gcc isn't a forced requirement out of the gate maybe give it a go.

/*
Side note: there's 2 "libdwarfs" floating around.. the one from SGI
and the BSD implementation, if licensing makes any difference..  I've
worked with the later
https://github.com/pathscale/libdwarf-bsd
*/

Back to comp.compilers | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ELF and DWARF tools ? "John R. Levine" <johnl@iecc.com> - 2014-12-29 00:42 -0500
  Re: ELF and DWARF tools ? C Bergström <cbergstrom@pathscale.com> - 2014-12-29 13:22 +0700
  Re: ELF and DWARF tools ? Hans Aberg <haberg-news@telia.com> - 2014-12-29 10:38 +0100
  Re: ELF and DWARF tools ? Walter Banks <walter@bytecraft.com> - 2014-12-29 08:05 -0500
    Re: ELF and DWARF tools ? Charles Chester <cc.63dw@gmail.com> - 2014-12-30 18:18 -0500

csiph-web