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

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 2012-06-07 15:55 -0400
Organization The World Public Access UNIX, Brookline, MA
Message-ID <12-06-017@comp.compilers> (permalink)
References <12-06-009@comp.compilers>

Show all headers | 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