Path: utzoo!attcan!uunet!timbuk!cs.umn.edu!ub.d.umn.edu!rutgers!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!ukc!axion!planet!prk From: prk@planet.bt.co.uk (Peter Knight) Newsgroups: comp.lang.c Subject: Re: How much can a segment take?? Message-ID: Date: 28 Sep 90 07:34:24 GMT References: Sender: usenet@planet.bt.co.uk (Usenet News Manager) Organization: RT743, BT Research Labs, Martlesham Heath, Ipswich, UK. Lines: 19 greg@turbo.atl.ga.us (Greg Montgomery) 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?? The large model of most MS-DOS C compilers can only cope with each object file (in Turbo's case this may not be written to disk, so strictly isn't a file....) being less than 64K. To make bigger programs, you need to compile bits of the code seperately, and then link them together to form your completed program, which may be greater than 64k. Try reading the Microsoft C compiler documentation, if you can get hold of it. Peter Knight BT Research #include