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 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> 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 Jianfei Hu 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