Re: [cc65] Optimizations of structures

From: thefox xofeht <>
Date: 2010-09-11 11:57:08
On Fri, Sep 10, 2010 at 3:54 PM, Marc 'BlackJack' Rintsch
<> wrote:
> IMHO it has too many implications and breaks too much.  For example what
> will ``pos[n]`` return?  It can't be a pointer to a structure anymore.

p[n] (struct pos p[64];) wouldn't return a pointer, it would return a
reference to the array element, so the compiler would still know how
to perform the pointer arithmetics as long as it knows the size of the
array. But yeah, pointers to the array would be impossible to do
(without some additional attributes to the pointer, i.e. the array
size, and then things start to get messy).

To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Sep 11 11:57:16 2010

This archive was generated by hypermail 2.1.8 : 2010-09-11 11:57:19 CEST