[fpc-pascal] Records
Micha Nelissen
micha at neli.hopto.org
Wed Oct 26 12:06:57 CEST 2005
Vinzent Hoefler wrote:
>>Oh right! Something like a masked compare or so...probably not
>>implementable in an efficient way indeed I guess.
>
>
> Whatever you call efficient. A simple memory compare won't do, as others
> already pointed out, and everything else depends on the actual layout
> of the structure.
Your structure is very short, code length will explode for larger
structures. It's inefficient compared to "REPE CMPSD" with proper
context, this is only a few lines.
> andl $56, %eax
> andl $56, %edx
> cmpb %al, %dl
> je .L49
> .L42:
> movl %esi, %eax
> popl %edx
> popl %ebx
> popl %esi
> ret
What does this part do btw? Compare lengths?
Micha
More information about the fpc-pascal
mailing list