Re: Optimizing Static Variable Layout
- From: Betov <betov@xxxxxxx>
- Date: 28 Apr 2005 08:24:26 GMT
Sevag Krikorian <kahlinor@xxxxxxxxxxxxx> écrivait news:d4pp9q$c82$1
@domitilla.aioe.org:
> PRO:
> An option to rearrange variables can be useful in creating
> more compact code with less effort on the author.
The impact of this stupidity would be almost null
on most Files. For example, when you have a PE, the
Standard is to have the Sections aligned on 0200h
Boundary. What means that, statistically, you have
an average of 0100h zeros at the end of each Section.
Compared to what all the Assemblers do, and considering
how the Programmers write their Source, this stupîdity
would save 0, 1, 2 or 3 Bytes, here and there, this is
to say an average of 2 Bytes per Data Block.
What means that, -still talking of the average cases-,
you would need 128 Data Blocks, before you could see
any effect. Let me tell you that such an Application,
having 128 or more separated Data Blocks, given the
way the Programmers effectively write, would be of
such a Size, that +or- 0100h Bytes would not make any
significative difference. This is simply absurd.
Betov.
< http://rosasm.org >
.
- References:
- Re: Optimizing Static Variable Layout
- From: randyhyde
- Re: Optimizing Static Variable Layout
- From: randyhyde
- Re: Optimizing Static Variable Layout
- From: Betov
- Re: Optimizing Static Variable Layout
- From: Sevag Krikorian
- Re: Optimizing Static Variable Layout
- Prev by Date: Re: RosAsm injects extra bytes into your data
- Next by Date: Gratitude in order !
- Previous by thread: Re: Optimizing Static Variable Layout
- Next by thread: Re: Optimizing Static Variable Layout
- Index(es):