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


Groups > comp.compilers > #678

Re: Some problem about the elf file while generating the code for compiler

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!news.iecc.com!nerds-end
From Robert A Duff <bobduff@shell01.TheWorld.com>
Newsgroups comp.compilers
Subject Re: Some problem about the elf file while generating the code for compiler
Date Thu, 07 Jun 2012 15:55:56 -0400
Organization The World Public Access UNIX, Brookline, MA
Lines 17
Sender news@iecc.com
Approved comp.compilers@iecc.com
Message-ID <12-06-017@comp.compilers> (permalink)
References <12-06-009@comp.compilers>
NNTP-Posting-Host news.iecc.com
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace leila.iecc.com 1339190688 57739 64.57.183.58 (8 Jun 2012 21:24:48 GMT)
X-Complaints-To abuse@iecc.com
NNTP-Posting-Date Fri, 8 Jun 2012 21:24:48 +0000 (UTC)
Keywords linker, code
Posted-Date 08 Jun 2012 17:24:48 EDT
X-submission-address compilers@iecc.com
X-moderator-address compilers-request@iecc.com
X-FAQ-and-archives http://compilers.iecc.com
Xref csiph.com comp.compilers:678

Show key headers only | View raw


Jianfei Hu <hujianfei258@gmail.com> writes:

> Recently I plan to build a simple compiler by myself. When it comes to
> elf file generation, I got a problem.

You might want to side-step that problem by having your compiler
generate assembly language as text.  And then feed that to an
assembler.  If your purpose is to learn about compilers, then this
allows you to learn the interesting and important stuff, while
avoiding learning boring nitty-gritty details, such as the one you
mentioned.

> You might take a look at my Linkers and Loaders book, ...

Good idea in any case -- it's an excellent book.

- Bob

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


Thread

Some problem about the elf file while generating the code for compiler Jianfei Hu <hujianfei258@gmail.com> - 2012-06-07 01:49 +0800
  Re: Some problem about the elf file while generating the code for compiler Robert A Duff <bobduff@shell01.TheWorld.com> - 2012-06-07 15:55 -0400
    Re: Some problem about the elf file while generating the code for compiler BGB <cr88192@hotmail.com> - 2012-06-09 10:26 -0500

csiph-web