Caution for those considering MSC 5.0

Mark Chance mc35+ at andrew.cmu.edu
Fri Feb 5 09:10:15 AEST 1988


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+ at andrew.cmu.edu       Carnegie-Mellon Univ.



More information about the Comp.lang.c mailing list