Right you lot. All these little snippets about coding, porting and generally Being Useful could quite easily be posted on http://developer.acggbg.org/ which has all the advantages and disadvantages of being a Wiki, and also has the immense advantage of already being set up and structured to a great extent.
On Mar 3 mai 2005 3:17, Anton Reinauer a écrit :
On 2/05/05, Tony Wyatt wrote:
The 68k code depends on a2, a3, a6 always pointing to particular structures. That makes it quick to call a function, because those registers do not have to be set up before the call. In C, though, I have to pass the pointers as function arguments each time. I *could* define a proto that uses 68k registers, but that would be useless when I recompile the C code for the PPC. Meantime I am stuck with having to load arguments onto the stack for the simplest function call, which in the 68k assembler case, might not have to load any registers at all. Bloody slow.
Yeah, on 68k processors that's true- but it's not necessarily true on PPC, as they have Level2 memory caches, which the CPU has very fast access to (compared to main memory). Something like parameters stored in the stack, should be guaranteed to always stay in the L2 cache, during the function call, as it's a small amount of memory only stored for a very small amount of time.
-Ants
-- Anton Reinauer amizilla@ants.name
http://www.ants.name
Openoffice-os4 mailing list Openoffice-os4@samfundet.no https://lists.samfundet.no/mailman/listinfo/openoffice-os4