Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!uokmax!servalan!epmooch!ben From: ben@epmooch.UUCP (Rev. Ben A. Mesander) Newsgroups: comp.sys.amiga.programmer Subject: Re: Lemmings - a tutorial Part V (last) Message-ID: Date: 4 Apr 91 01:43:00 GMT References: <1991Mar31.003933.1483@mintaka.lcs.mit.edu> <1991Apr1.020748.26863@mintaka.lcs.mit.edu> <1991Apr4.224045.10542@starnet.uucp> Distribution: world Lines: 38 >In article <1991Apr4.224045.10542@starnet.uucp> sschaem@starnet.uucp (Stephan Schaem) writes: > > > For the Mulu #17 and optimization. > mulu #17 42 cycle. > other example 26, but it use 2 register. > If you dont have the luxary and have better use of it (for you loop) > you are over 42 cycles not using mulu. > And other solution in some cases are mulu tables... Yeah, I've written some Z-80 code to do table-assisted multiplies. After all, it has no mulu. (You kids today have it *easy*! Assembler?? We had to type the bytes in with a hex keypad and a 7-segment display!) Table driven multiplies can be pretty quick... > And when will you have C compiler with AI? Optimization is not only > tricks, but logical solution for you code. > Again, how many compiler break up large loops for registers usage? Far be it from me to join in the great C vs. Assembly wars, I just wanted to point out: "it's in there". GCC is an assembly language independent compiler that works internally by converting your C to a lisp-like language and manipulates this when optimizing. A machine-dependent back end converts this to assembler language. Personally, I think the whole flame war here is bogus. I've programmed in assembler and C, I like Z-80 assembler, I don't like 68000 assembler, so I program in C on my Amiga. I can see why someone else likes something else. I use programs written in assembler (ARexx, Xoper), and programs written in C (MicroEMACS, XLISP). So what? Take it to .advocacy and get this newsgroup the *hell* back on topic. (Not just you, Stephan). -- | ben@epmooch.UUCP (Ben Mesander) | "Cash is more important than | | ben%servalan.UUCP@uokmax.ecn.uoknor.edu | your mother." - Al Shugart, | | !chinet!uokmax!servalan!epmooch!ben | CEO, Seagate Technologies |