Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!ll-xn!mit-eddie!uw-beaver!cornell!rochester!PT.CS.CMU.EDU!andrew.cmu.edu!mc35+ From: mc35+@andrew.cmu.edu (Mark Chance) Newsgroups: comp.lang.c Subject: Caution for those considering MSC 5.0 Message-ID: Date: 4 Feb 88 23:10:15 GMT Organization: Carnegie Mellon University Lines: 14 In recompiling my application under 5.0 I discovered an annoying feature which effectively prevents me from using 5.0. My application is pretty large and I need a lot of stack space. I am using the large model and by adding the -Gt option to force data items to their own segment things are pretty cool. Now along comes 5.0 and I specify 20000 bytes stack space, the linker says 'Error: stack+data>64K'. I say how can that be? Well the punch line is that 5.0 puts strings in the CONST space which is in the stack segment !!! :-(. So cluttering up my precious stack space is 40K worth of strings that used to be distributed among the various FAR-DATA segments. I intend to complain to Microsoft about this since I have not found any compiler switches to avoid this. Any other ideas? Mark Chance Information Technology Center mc35+@andrew.cmu.edu Carnegie-Mellon Univ.