Re: DWORD Alignment
- From: "Sam Hobbs" <samuel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 16 Jun 2005 07:22:39 -0700
"Thorsten Albers" <albersRE@xxxxxxxxxxxxxxxxxxx> wrote in message
news:01c57148$d095f640$a18ee684@xxxxxxxxxxx
>
> That is what the CPU returns. But AFAIK internally a 32 bit CPU gets
> always
> a 32 bit value but mapps it, if necessary, to the registers with the
> correct data byte width. But since I think I have read this somewhere and
> since my memory has like my money-bag some obvious leaks I wouldn't swear
> on this...
As far as I know, that would be all performance-related and would not have
an affect on function.
There are many possible perormance improvements that can vary depending on
the processor and other hardware. I think that most memory chips have a
cache of some type that can improve performance and the amount of memory
retrieved from memory and/or that is cached can vary. Processors have
internal caches. There might also be caches that store just 32 bits in 32
bit processors.
Most processors have machine instructions that are capable of loading a
register from the machine language statement. For example, in the following:
Dim ba(9) As Byte
ba(0) = ba(0) + 11
Since 11 is a constant, it could be translated into a machine instruction
that loads the Byte (8-bit) constant directly from the machine instruction
that is already in the instruction register.
.
- References:
- DWORD Alignment
- From: dw85745@xxxxxxxxxxxxx
- Re: DWORD Alignment
- From: Thorsten Albers
- Re: DWORD Alignment
- From: Jim Mack
- Re: DWORD Alignment
- From: Thorsten Albers
- DWORD Alignment
- Prev by Date: Re: Harddrive capability
- Next by Date: SHFILEOPERATON locks program
- Previous by thread: Re: DWORD Alignment
- Next by thread: Trapping Cancel on GetOpenFileName Common Dialog API
- Index(es):
Relevant Pages
|