I am getting the error message "segment _TEXT exceeds 64 k" when i am linking my program in borland turboc3 3.0 compiler.

Can anyone suggest a remedy for this.

I have tried reducing some lines of text from my program but to no help and now i can't reduce any furthur lines.

Can anyone tell how to increase the size of segment beyond 64k.

Please send your help as soon as possible as my project deadline is about to end.
RAANA SYEDA

Well, you will use these stone age tools.
How many GB does your machine have?

> I have tried reducing some lines of text from my program but to no help and
> now i can't reduce any furthur lines.
The number of lines has little to do with the problem.

> Can anyone tell how to increase the size of segment beyond 64k.
Get a 32 bit compiler, then the 'segment' size jumps to a whopping 4GB.

Which memory model did you choose?
Splitting the code into many source files would certainly help if you pick say 'medium' or 'large'. But they must really be separate, and not recombined with say #include "funcs.c" Changing memory models is no fun.

You might be able to minimise the work by splitting off one or two large and self-contained functions into another source file.

If you are stuck with ancient 16-bit tools, look in the documentation for "overlays".

However, I wholly endorse Salem's recommendation to git yerself a mo-dern compost piler.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.