🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.msdos.programmer
Article #15

Re: HELP needed: segment _TEXT exceeds 64 K

#15
From: Jerzy Tarasiuk
Date: Sat, 23 Mar 1996 13:28
21 lines
1927 bytes
>>>>> "H" == Hans-Bernhard Broeker <Broeker@axp03.physik.rwth-aachen.de> writes:
H> plugge@biv6.sr.fh-mannheim.de () writes:
>> Compilation is ok, but linking fails with the error "segment _TEXT
>> exceeds 64 K". I tried to remove (for DOS) some parts of the code,
>> but the errror remains. Is there any chance to link the program or
>> should I abandon the DOS port?

H> Once more, someone has been been hit by the 64KB Wall of 16-Bit
H> Messy-DOS compilers.  To fix that, use a different, i.e.  a 32-Bit
H> flat-memory model compiler (judging from the other platforms in use, the
H> DOS port of gcc, called DJGPP, is what you're looking for).  All other

Or simply change memory model in your compiler options (providing
it has such an option) - the 64kB limit is in Tiny/Small/Compact
only, use Medium or Large. Note: for Medium must remember pointers
to code and data are not of same size, avoid converting pointer to
function to void pointer and back, it causes incorrect result.
Large causes all pointer to be 4-byte, as it is on other machines.
[it is assuming you program in C based on group you post to]

Moving to GCC/DJGPP is necessary when you hit 640kB...
Technical Details
Message-ID: <wzzq98ndld.fsf@fizyk2.fuw.edu.pl>
Path: arc1-ca.pugleaf.net!fuw.edu.pl!usenet
References: <1996Mar22.075920.27331@roxi.rz.fht-mannheim.de> <Broeker.827509764@axp03>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!fuw.edu.pl!usenet
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Newsgroups: comp.msdos.programmer,alt.msdos.programmer,comp.os.msdos.programmer,de.comp.lang.c,de.comp.os.msdos
Subject: Re: HELP needed: segment _TEXT exceeds 64 K
Followup-To: alt.msdos.programmer
Date: 23 Mar 1996 14:28:16 +0100
Organization: Warsaw University, Physics Department
Message-ID: <wzzq98ndld.fsf@fizyk2.fuw.edu.pl>
References: <1996Mar22.075920.27331@roxi.rz.fht-mannheim.de>
 <Broeker.827509764@axp03>
Reply-To: jt@zfja-gate.fuw.edu.pl (Jerzy Tarasiuk)
NNTP-Posting-Host: fizyk2.fuw.edu.pl
In-reply-to: Broeker@axp03.physik.rwth-aachen.de's message of 22 Mar 96 15:49:24 GMT
Cc: plugge@biv6.sr.fh-mannheim.de
X-Newsreader: (ding) Gnus v0.82