Page 1 of 1

QL ZIP Port of InfoZIP v19

Posted: Mon Nov 21, 2016 2:12 pm
by tcat
Hi,

As promised just pushed `qzip' (InfoZIP program ZIP), based on original source from 1992,
`zip19p1.tar.Z' , ported using `qdos-gcc' compiler.

https://github.com/SinclairQL/qzip

The idea is to learn, improve, and have some fun with C-coding.
It is not meant to replace existing work of Jonathan Hudson's, from whose sources I learn a great deal.

My port of ZIP requires less memory, is v1.9 , does not support level-2 directories, and is generally better suited to bare QLs with minimum extended memory.

`qzip' - 69206 code / 60764 dataspace
`zip' - 74112 code / 309388 dataspace !! (ziprelease v3.0)

Typing make will reveal all possible target platforms.

Code: Select all

tcat@lynx:/usr/src/qzip$ make

Make what?  You must say what system to make Zip for--e.g.
"make bsd".  Choices: 3b1, aix, att6300, aux, bsd, bsdold,
convex, cray, cray3, dec_osf1, dnix, hpux, isc, linux, qdos,
minix, next, next10, scodos, sun, sun_gcc, sysv, sysv_386,
sysv_old, ultrix, xenix, xos, zilog.
See the files install.txt and zip.txt for more information.
I have added `qdos' target on the list, and included conditional compilation defining QDOS flag in various source files. Other targets are Amiga,Atari,WIN32,VMS, and MSDOS, having each separate `makefile'.

Currently tested and working on `linux' and `qdos' platforms.

The idea might be to strip code to a bare minimum, removing portions of code for other platforms, and make resulting executable as small as possible.

There is an optimised assembly routine `match.s' for longest match, that can be conditionally included.

I will try to comment and explain all changes I made from original source, here. Perhaps if original source were pushed in separate branch, then `diff' could be made right at GitHUB web, something I do not know if possible?

Tomas

Re: QL ZIP Port of InfoZIP v19

Posted: Tue Nov 22, 2016 1:07 pm
by Cristian
Great!

Re: QL ZIP Port of InfoZIP v19

Posted: Tue Nov 22, 2016 9:20 pm
by Outsoft
Cristian wrote:Great!
Tomas is always great ;)

Re: QL ZIP Port of InfoZIP v19

Posted: Thu Nov 24, 2016 7:02 pm
by omtexmex
Hi Tomas,
i'm a old QL user and I want to restart to write some C code.

I read your great work to port ANSI C InfoZIP trought "qdos-gcc". Probably there are many other C software to make a porting.

What Linux distribution do you use?

Can you help me to create a right environment.

Thanks in advice!

Re: QL ZIP Port of InfoZIP v19

Posted: Fri Nov 25, 2016 9:41 pm
by Outsoft
omtexmex wrote:Hi Tomas,
i'm a old QL user and I want to restart to write some C code.

I read your great work to port ANSI C InfoZIP trought "qdos-gcc". Probably there are many other C software to make a porting.

What Linux distribution do you use?

Can you help me to create a right environment.

Thanks in advice!
Yes is a really great work!

Re: QL ZIP Port of InfoZIP v19

Posted: Mon Feb 22, 2021 1:54 pm
by SM7I
Hi !

Does the compiled Linux binary retain the magic header for executable QDOS files ?

Re: QL ZIP Port of InfoZIP v19

Posted: Wed Feb 24, 2021 4:19 pm
by tcat
Yes, it does with `-H' option passed to zip.
Only executable files needs this option.