[Zlib-devel] [4/6][RFC V2 Patch] Add an x86 version of Adler32
Jan Seiffert
kaffeemonster at googlemail.com
Thu Mar 31 08:09:10 EDT 2011
2011/3/31 Jan Seiffert <kaffeemonster at googlemail.com>:
> 2011/3/31 Vincent Torri <vtorri at univ-evry.fr>:
>>
>>
>> On Wed, 30 Mar 2011, Jan Seiffert wrote:
>>
>>> It heavily uses inline ASM, so it's restricted to GCC (or compatible
>>> compiler, like clang).
>>
>> why not using yasm or nasm ?
>>
>
> The reason is in the next sentence:
>
>>> This gives us help from the compiler for boilerplate code, all the
>>> fiddling with calling conventions, PIC and bit-ness of the code.
>>>
>
> To get the code working on 32Bit & 64Bit, PIC (dll & .so) + static,
> Windows + SysV would make it a macro nightmare.
>
I totally forgot:
The compiler also generates debug info and creates unwind info and
such things. All this meta foo which is not directly code.
+ You have MacOS-X (MachO binary format, etc.).
Greetings
Jan
--
If you're sending someone Styrofoam, what do you pack it in?
More information about the Zlib-devel
mailing list