This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: m68k MacOS target support?


Mark Mitchell wrote:

> if there are other architectures that have similarly unusual pointer
> formats.  (I don't know whether there are such beasts or not,
> honestly).

It looks suspiciously like the Cray (Parallel Vector, i.e. Cray Classic)
character pointer format.

The word (64 bits) address is in the lower 32 bits of the pointer and
the bit offset within the word is in the upper 6 bits of the pointer.

[ With this information at hand, estimate the number of instructions
necessary to encode the loop body in:

f(char *s, char *t)
{
	while (*s++ = *t++)
		;
}

given only word sized loads, stores and shifts. Use of a slide rule is
permitted. ]

HTH,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]