piclist 2001\06\28\093917a >
Thread: const pointers in hitech C
face BY : mikeSTOPspam@whitewing.co.uk

OK, I understand that now, but this solution does not tell the
compiler that it will only ever be passed a pointer to the same RAM
location, and it isn't smart enough to figure it out for itself. By 'const pointer' I meant that the _value_ of the pointer will be
constant at link time, i.e. it always points to the same RAM address
(the one allocated to the local variable of the calling procedure) ,
so the compiler can generate fixed addresses for operations involving
the variable referenced by the pointer. Is there any way to explicitly
do this ?
the pointerOn Thu, 28 Jun 2001 07:12:20 -0400, you wrote:

{Quote hidden}

http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.

<cq9mjto46bt674ut6ul2q407u63b81qdfs@4ax.com> quoted-printable

In reply to: <>
See also: www.piclist.com/techref/microchip/languages.htm?key=c
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) const pointers in hitech C

month overview.

new search...