Re: Empirical data: assembly source vs. HLL source.

djb@koobera.math.uic.edu (D. J. Bernstein)
12 Jul 1999 01:04:00 -0400

          From comp.compilers

Related articles
Empirical data: assembly source vs. HLL source. hunk@csd.uwm.edu (Mark William Hopkins) (1999-07-06)
Re: Empirical data: assembly source vs. HLL source. jsture@nortelnetworks.com (John Sture) (1999-07-10)
Re: Empirical data: assembly source vs. HLL source. tej@melbpc.org.au (Tim Josling) (1999-07-10)
Re: Empirical data: assembly source vs. HLL source. chase@world.std.com (David Chase) (1999-07-11)
Re: Empirical data: assembly source vs. HLL source. djb@koobera.math.uic.edu (1999-07-12)
Re: Empirical data: assembly source vs. HLL source. johnmce@world.std.com (1999-07-12)
Re: Empirical data: assembly source vs. HLL source. t.hutt@worldnet.att.net (Taylor Hutt) (1999-07-12)
Re: Empirical data: assembly source vs. HLL source. pmai@acm.org (1999-07-14)
Re: Empirical data: assembly source vs. HLL source. darcy@moa.CS.Berkeley.EDU (1999-07-14)
Re: Empirical data: assembly source vs. HLL source. adrian@dcs.rhbnc.ac.uk (1999-07-14)
Re: Empirical data: assembly source vs. HLL source. anton@mips.complang.tuwien.ac.at (1999-07-21)
| List of all articles for this month |

From: djb@koobera.math.uic.edu (D. J. Bernstein)
Newsgroups: comp.compilers
Date: 12 Jul 1999 01:04:00 -0400
Organization: IR
References: 99-07-023 99-07-038 99-07-042
Keywords: assembler

David Chase <chase@world.std.com> wrote:
> It's just insane that I write
> add r1,r3,r2 (quick, which is the destination operand?)


So don't. Write, e.g.,


      eax = ebx + ecx*8 + 3


and feed it through your favorite preassembler to print


      lea 3(%ebx,%ecx,8),%eax


for gcc's assembler.


---Dan


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.