Re: AW: [cc65] Best way to get aligned memory...

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2003-01-08 08:20:27


On Tue, Jan 07, 2003 at 10:25:20AM +0100, Piotr Fusik wrote:
> BTW. here's another solution:
> char buffer[size + patchbytes];
> #define realbuffer  ((char*) ((int) (buffer + patchbytes) & ~patchbytes))

While this solution avoids the additional pointer, the compiler will still do
address calculations at runtime. Using the assembler module solution generates
the best code in most situations.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-01-08 08:20:31 CET