Zorg – C Compilers – Enhanced GEM

C and PASCAL (or any other high-level languages) in here please
Post Reply
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Zorg – C Compilers – Enhanced GEM

Post by DrCoolZic »

Some of you may know the Zorg program? Basically it is a very powerful program that allows to do a lot of things with Disks and File’s system … The Zorg program used to be a shareware but, as I found recently, it has been made public by its author under a GNU public license (thanks to him). The sources are available at http://topp.atari-users.net/zorg.htm . :contract:
I have therefore decided to compile the Zorg program! By looking at the zorg.prj file I found that the program is apparently using the Pure C development environment.

I am porting to an Atari a program for the Discovery Cartridge using the Lattice C compiler (unfortunately without documentation but this may change http://www.atari-forum.com/viewtopic.php?t=2792), but I am not familiar with the C compilers from Borland.
I have been able to find Pure C V1.1 dated Mar 20, 1993 as well as Turbo C V2.0 1990 (unfortunately in German and I do not speak German!). They are both copyrighted Borland and they look somewhat similar…

So here comes the first serie of questions: :megaphone:
+ Does anybody know if Pure C is the same and/or derived from Turbo C? :?:
+ Anybody with an English version of Turbo C? :?:
+ Anybody with version newer than V1.1 of Pure C? :?:
(+ Any opinion between Pure C / Turbo C / Lattice C?) :?:

Using the Pure C V1.1 environment I have tried to build the Zorg project but unfortunately it fails… Looking at the files I found that it uses an enhanced GEM!?! This requires to include e_gem.h. I do have an e_gem.h file (apparently V1.40) as part of the pure c environment, but unfortunately it does not seem to be the right one? The compilation fails on a declaration of a WIN structure (used in several places in the sources of Zorg) but this structure is not defined anywhere?! The comment in one the source (globals.h) mentions that the WIN structure is a window structure from the enhanced GEM?

So here is a second series of questions: :megaphone:
+ Does anybody know about enhanced GEM :?:
+ From which company? Any documentation? :?:
+ The zorg.prj file link with an e_gem.lib, which is not part of the pure_c distribution I only have the .h file. Any idea where can I find the e_gem.lib file? :?:
+ Also commented out in the .prj file is mention of an e_gem30.lib? Is it a newer version of the enhanced gem that includes definition for WIN structure??? :?:

Thanks
[ProToS]
Moderator
Moderator
Posts: 2242
Joined: Fri Sep 20, 2002 2:09 am
Location: Lourdes / France
Contact:

Post by [ProToS] »

egem_200.lzh 280 Enhanced GEM libraries, 2.00
egem_210.lzh 408 Enhanced GEM libraries, 2.10

http://www.umich.edu/~archive/atari/Programming/
SeeU
[ProToS]/Facebook
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Post by DrCoolZic »

Whaooo - thanks
lots of interesting stuff there!!!
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Post by DrCoolZic »

Looks like this is not yet the good version of the enhanced gem library.
Version 2.1 is definitively better than version 1.4 but still different from the one used in Zorg. As I already mentioned it looks like zorg is using v3.0 as this is indicated as a comment in the makefile!

I have looked for that version on the net but without success!
I have found the source code for V2.1 (as the link you indicated had the .lib for v2.0 but not for v2.1) at the following location:
http://cd.textfiles.com/ataricompendium ... /EGEM_210/

Any chance to find v3.0 of e_gem ?

Thanks
User avatar
DrCoolZic
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2270
Joined: Mon Oct 03, 2005 7:03 pm
Location: France
Contact:

Post by DrCoolZic »

I finally succeeded to compile Zorg !

After more research I found a V2.2 of the enhanced gem library and Zorg is happy with this version.

For information if you need the enhanced gem library v2.2 seems to be the latest and can be found at
http://ftp.funet.fi/pub/atari/programming/

It comes with sources but no .lib => I therefore had to build it with pureC. For strange reason I had to modify the code as some conditional include does not seems to work correctly ?!?

Jean
Post Reply

Return to “C / PASCAL etc.”