Re: initializing wider-than-pointers

2005-07-04 Thread Richard Henderson
On Fri, Jul 01, 2005 at 09:27:48PM -0400, DJ Delorie wrote: > Note that my complaint about the lack of endian support in that code > still stands ;-) I seem to recall running into this before. It's not a lack of endian support, it's one piece lying to another about the size of the object. Which

Re: initializing wider-than-pointers

2005-07-01 Thread DJ Delorie
> Trying to fake two kinds of pointers when we only have one doesn't seem > wise to me. > > A possible solution is to use function descriptors. Both m32c (my local copy at least) and xstormy use 16 bit thunks to reference the address of a function outside the first 64k of address space. In thi

Re: initializing wider-than-pointers

2005-07-01 Thread James E Wilson
DJ Delorie wrote: For some chips, like xstormy16 and m16c, function pointers are wider than other pointers. Trying to fake two kinds of pointers when we only have one doesn't seem wise to me. A possible solution is to use function descriptors. See FDESC_EXPR and ASM_OUTPUT_FDESC. So now w