[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [f-cpu] back to VHDL
Yann Guidon wrote:
> should be sorted to :
> long long int c;
> int *e; /* here we don't know if a pointer is 32 or 64 bits,
> so putting it here is a way to avoid any problem */
> int b;
> char a;
> char d;
>
> If all data are aligned, there is no hole between them.
>
> The problem with unaligned data in a cache line is to determine whether
> the reference crosses a line boundary and whether this will harm
> future architectural developments. I prefer to play it "safe" now.
The problem is char foobar[71] or struct { char foo[3] } foofoo[29];
If you are going to sort ... sort arrays and structures last as you keep
local references local.
--
Ben Franchuk - Dawn * 12/24 bit cpu *
www.jetnet.ab.ca/users/bfranchuk/index.html
*************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe f-cpu in the body. http://f-cpu.seul.org/