Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rochester!cornell!uw-beaver!mit-eddie!genrad!decvax!ucbvax!ucbcad!ames!amdcad!amd!sco!jamescb From: jamescb@sco.UUCP (James Bohem) Newsgroups: comp.unix.xenix Subject: Re: GKS, INFORMIX on SCO XENIX Message-ID: <180@sco> Date: Wed, 1-Jul-87 21:40:52 EDT Article-I.D.: sco.180 Posted: Wed Jul 1 21:40:52 1987 Date-Received: Sat, 4-Jul-87 05:17:23 EDT References: <241@bvax.UUCP> <1043@killer.UUCP> Reply-To: jamescb@sco.UUCP (James C. Bohem) Organization: SCO, Santa Cruz CA Lines: 25 Keywords: GKS, INFORMIX, C-ISAM In article <1043@killer.UUCP> jfh@killer.UUCP (John Haugh) writes: >In article <241@bvax.UUCP>, rich@bvax.UUCP (Rich Chahley) writes: >> We also ran into a mitful of problems when GKS, INFORMIX C-ISAM is linked >> together with our application software developed in-house. The problem is >> with the stack space for the "near data segment" in XENIX. Apparantly the >> near data segment includes the uninitialized data and string constants and >> cannot exceed 64k. >> ::: > >This used to be a problem with PDP-11's. The entire program can only be >64K period. (Unless you use separate I&D) Some programs would move some ::: etc. Not quite the same on an Intel 80286 (please no segmented architecture flames, I hate it too): In this case, Informix is a medium model program (1 64K data segment, multiple text segments); The 64K limitation is small model on the 8086/80286, just like PDP's, and just like PDP's, the -i option to cc will give you 64K of each text and data. Informix, and its libraries for C program development still have a data space limitation of 64K, but not a text limitation. Note that on the 286 you can use the brkctl() call to allocate > 64K using **far** pointers (but be reeeal careful). This helps with overall data requirements but NOT with initialised data. But by making most of your data access a far segment, you can hopefully find space in the first data segment for the initialised data. Remember that your stack comes out of that first data segment too, so leave room for it.