Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

LZMA SDK 4.42 for FPC (Announce)

posted by Rugxulo Homepage, Usono, 21.10.2010, 15:47
(edited by Rugxulo on 21.10.2010, 15:58)

>
> The GPL says not at all to host. It says you must make available the source
> on request, against a nominal fee covering costs. Such nominal fee can be
> in the magnitude of $50. (since manhours count as cost and must also be
> covered)

And speaking of licenses (not) ...

Did you know somebody ported the LZMA SDK to FPC? Yup. It's the old 4.42 version (LGPL), not newer public domain or anything, but that's no deal breaker, IMHO. From a quick glance, it seems to only be the actual stand-alone LZMA encoder/decoder tool (and related routines). Okay, I know I know, but still, in my perfect world, it could be used with FPC's installer, or even just in general.

But more importantly, here's the deal: comment out the requirement of the "windows" unit and comment out the benchmarking stuff too (since it relies on GetTickCount, which DOS doesn't have). Oh, and somebody (grumble grumble) hardcoded #10 for line ending (silly), change that to #13#10. It does compile and work with 2.4.0. However, it both compiles a lot faster (linking much??? wouldn't think so) and indeed runs a lot faster for the Win32 version of FPC here on XP/P4, dunno why. I'll be honest, I thought it (LZMAALONE.EXE) had hung, esp. for the DOS version. It doesn't print progress info, which is weird because I thought it should (with all the benchmarking bullcrap). I should really run it again and time it for you, but whatever. The point is that it does work! (Yes, I tried 2.4.2 first, but I'd really thought it had hung, kept trying, reverted to 2.4.0 to be safe, the program's just slow I guess. Worse is that I originally tried a much bigger file, heh, itself! Shame on me. Well, okay, not ready for prime time, but at least it functions correctly.)


REM ulzmabench.pas is 14 kb
lzmaalone e ulzmabench.pas tony.lzma
7za e tony.lzma
fc ulzmabench.pas tony /b
REM compares okay


EDIT: Compiles w/ 2.4.2 (DOS) in 9.5 secs, compression takes 3 min. 17 secs., comparison after unpacking still matches. (Note that this particular PC is very low on RAM, but that shouldn't? matter if default is 8 MB dictionary, right???) Oh, I used -XXs -CX -O3 -Oppentium4 (not that it helped, heh).

 

Complete thread:

Back to the forum
Board view  Mix view
22632 Postings in 2109 Threads, 402 registered users, 307 users online (0 registered, 307 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum