Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Compiler design in C? Date: Thu, 10 Nov 2016 12:29:43 -0800 Organization: None to speak of Lines: 19 Message-ID: References: <0915fef9-bb57-48b7-b98a-342f0e5ee39f@googlegroups.com> <87shr14n5b.fsf@gmail.com> <87r36k1l4w.fsf@gmail.com> <3e47c9bc-1c0a-40dc-9dc3-92e88ace6c31@googlegroups.com> <20161109215518.66b23ac0@maxa-pc> <20161110153701.ba4e5526701875156bc3ac63@g{oogle}mail.com> <9d9ccccb-a35a-455e-964d-f822f4484768@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="19f6983d7adc6a70870491918dcdf9b1"; logging-data="25197"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xOijuwUmbGQaOOfd4Fd0N" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:dPtZMwU6mp0wF7qGZOCrTjLF0KE= sha1:xHuXOs9rDhJZYf4qUCV6bQT9m/I= Xref: csiph.com comp.lang.c:96331 supercat@casperkitty.com writes: > On Thursday, November 10, 2016 at 6:37:07 AM UTC-6, Anton Shepelev wrote: >> One could save the calling of memcpy if one implemented >> generic sorting via array index manipulation, as my >> friend had done in procedural Pascal. He has used his >> sorting unit ever since in all his code. > > Or if one is sorting an array of pointers and one is using a language or > dialect that allows code to efficiently load and store items in an array > of arbitrary pointer type without having to know or care about the target > types of the pointers therein. Or use an array of void*. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"