Path: utzoo!attcan!uunet!nih-csl!lhc!adm!cmcl2!yale!cs.utexas.edu!sun-barr!apple!vsi1!octopus!stever From: stever@Octopus.COM (Steve Resnick ) Newsgroups: comp.lang.c Subject: Re: How much can a segment take?? Message-ID: <1990Sep27.212114.23582@Octopus.COM> Date: 27 Sep 90 21:21:14 GMT References: Reply-To: stever@octopus.UUCP (Steve Resnick ) Organization: Octopus Enterprises, Cupertino CA Lines: 25 In article greg@turbo.atl.ga.us writes: >I'm using TC++ (actually tcc.exe) and on compiling a program, I keep >getting the error message : "Segment _TEXT exceeds 64K". I'm using the >large memory model. Why is this a problem?? I thought the large memory >model allowed my program to access over 64k??? Any ideas on what is >causing this and how do I fix it?? > In Turbo C, the compiler assigns _TEXT segments as _TEXT when using large model. Are you sure you're using large model? If so, then the next likely cause is that the compiled file generated a code segment (_TEXT) larger than 64K. This can happen in large model when the code for a single source file is large. Try breaking your source file into 2 or more smaller files and recompile. That should do it. Cheers! Steve -- ---------------------------------------------------------------------------- steve.resnick@f105.n143.z1.FIDONET.ORG - or - apple!camphq!105!steve.resnick Flames, grammar errors, spelling errrors >/dev/nul ----------------------------------------------------------------------------