Path: utzoo!attcan!uunet!samsung!umich!umeecs!zip!spencer From: spencer@eecs.umich.edu (Spencer W. Thomas) Newsgroups: comp.sys.mac.programmer Subject: Re: Need large array on Think C. Message-ID: Date: 30 May 90 23:25:29 GMT References: <26645@<265986A9> <1232500001@ENS.Prime.COM> Sender: news@zip.eecs.umich.edu Organization: University of Michigan EECS Dept Lines: 13 In-reply-to: J.COOK@ENS.Prime.COM's message of 29 May 90 14:16:00 GMT In article <1232500001@ENS.Prime.COM> J.COOK@ENS.Prime.COM writes: > I find it too bad that all solutions in C involve allocating the array > at runtime and then referencing the variable through a pointer variable. > The resulting loss of efficiency due to indirection is disappointing. Except for the fact that ALL variable reference on the Mac is indirect through a register, even global and/or "static" variables. Instead of using A5 or A6, you are using one of A2-A4. So what? The access time is probably overwhelmed by the array index calculation, anyway. -- =Spencer (spencer@eecs.umich.edu)