How much can a segment take??

Steve Resnick stever at Octopus.COM
Fri Sep 28 07:21:14 AEST 1990


In article <e8N5P1w163w at turbo.atl.ga.us> greg at 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 <filename>_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 (<filename>_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 at f105.n143.z1.FIDONET.ORG - or - apple!camphq!105!steve.resnick
Flames, grammar errors, spelling errrors >/dev/nul
----------------------------------------------------------------------------



More information about the Comp.lang.c mailing list