DJ Delorie wrote:
>> I'll again point out that in your reset-vector example you don't
>> actually need any pointer operations.
> 
> I'm not trying to dereference any of these nonstandard pointers. 

Good!  In that case, you don't need them to be pointers at all. :-)

I think you should just declare them as integer types.  (You can give
them pointer-sounding typedef names.)  Then, provide builtins for
converting to/from real pointers.

The other things:

> assignment, copy, storage, cast to/from integers, etc.

will then just work.

> Rarely, calling a function indirectly, but
> that would have to be specific to the target, and documented therein.

Again, a built-in will work here.

If you avoid trying to introduce multiple *pointer* types, and just
treat these things as *integer* types, you avoid all of the hard
language issues.

-- 
Mark Mitchell
CodeSourcery
[EMAIL PROTECTED]
(650) 331-3385 x713

Reply via email to