Re: RosAsm injects extra bytes into your data
- From: Betov <betov@xxxxxxx>
- Date: 27 Apr 2005 19:50:55 GMT
"Alex McDonald" <alex_mcd@xxxxxxxxxxxxxxx> écrivait
news:1114628472.109735.162400@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:
> Thank you. You wrote;
>
>> > The point of my "idea" is rather than injecting all these padding
> bytes
>> > to align things, why not rearrange all the declarations to
> *minimize*
>> > the wasted space while maintaining the alignment the user requests.
>
>> Because this would be unusable, for the Programmer.
>
>> (The ones who have already written a bit of Assembly
>> will probably understand without explanations... :)
>
> I still don't understand this statement. Can you explain?
As the sense of humour might vary from culture
to culture, and as, maybe, some beginner would
also not understand, here is a trivial example:
[MyFirstData: DwordData: D§ ?]
;...
;...
[WordData: W§ ? ?]
;...
;...
[ByteData: B§ ? ? ? ? ? ? ? MyLastData: D§ ?]
;...
;...
; Clear My Data from 'MyFirstData' to 'MyLastData':
mov eax 0, edi MyFirstData
While edi < MyLastData | stosd | End_While
:)
Betov.
< http://rosasm.org >
.
- Follow-Ups:
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- References:
- HLA v1.76 is now available
- From: randyhyde
- Re: HLA v1.76 is now available
- From: Betov
- Re: HLA v1.76 is now available
- From: randyhyde
- Re: HLA v1.76 is now available
- From: Betov
- RosAsm injects extra bytes into your data
- From: randyhyde
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- Re: RosAsm injects extra bytes into your data
- From: Betov
- Re: RosAsm injects extra bytes into your data
- From: Alex McDonald
- HLA v1.76 is now available
- Prev by Date: Re: RosAsm injects extra bytes into your data
- Next by Date: Re: Optimizing Static Variable Layout
- Previous by thread: Re: RosAsm injects extra bytes into your data
- Next by thread: Re: RosAsm injects extra bytes into your data
- Index(es):