Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uunet!medar!jseymour From: jseymour@medar.com (James Seymour) Newsgroups: comp.sys.amiga.programmer Subject: Re: free() in SAS C Message-ID: <1991May07.164814.2538@medar.com> Date: 7 May 91 16:48:14 GMT References: <1991May02.143148.22732@edb.tih.no> Organization: Medar, Inc. Farmington Hills, MI Lines: 32 In article chopps@ro-chp.UUCP (Chris Hopps) writes: > >By ANSI def. you can only (m|c|re)alloc 64k blocks and less. > >RTFM :^) >SAS/C Volume 2, Page L19-22. > Actually it seems this is incorrect. I made the assumption that the docs in the SAS (Lattice, actually) manual were accurate, but when I could find *no* supporting docs for the 64k "limit" anywhere (incl. a copy of the ANSI draft standard and K&R 2nd Ed.) I asked SAS Tech. Support about it and they agreed that this item was in error. I suspect that the 64k thing came about because Lattice (who *used* to be responsible for the Amiga product as well) also makes a compiler for MeSsy-DOS and there *would* be a 64k limit on anything except (I think) large and huge model programs. Why Lattic referred to it as an "ANSI Standard" is anyones guess. Can anyone else comment further on this? Did I miss something? Is there *really* an ANSI-imposed 64k malloc limit? This hardly seems reasonable to me. Heck, if I wanted 64k limits, I coulda bought a MeSsy-DOS box (shudder). > >Chris... >-- -- Jim Seymour | Medar, Inc. ...!uunet!medar!jseymour | 38700 Grand River Ave. jseymour@medar.com | Farmington Hills, MI. 48331 CIS: 72730,1166 GEnie: jseymour | FAX: (313)477-8897