delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/01/06:44:25

Message-ID: <336870D8.7089@silesia.top.pl>
Date: Thu, 01 May 1997 12:30:48 +0200
From: Michal <wapex AT silesia DOT top DOT pl>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Alignment
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970501073818 DOT 2886D-100000 AT is>

Eli Zaretskii wrote:
> They don't have to be, 32 byte alignment is all that's needed AFAIK.
Sorry, I mean ofcoure 64bit(8 byte) not 64 byte boundary.
> 
> I would guess that's because of the effects related to the CPU cache.  If
> you really care, you could disable the caches and see if adding an int
> variable changes anything.
> 
> But why should you care that much about 10%?  In my experience, such
> effects are highly dependant on the particular CPU and motherboard that
> you are running on, so why bother?

I have checked the address of the first double, it have increased by 4
bytes when I have added an int beafore.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019