🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #1409

Re: Turbo C++--forcing vars into CSEG

#1409
From: Bob Mathews
Date: Thu, 10 Sep 1992 06:17
21 lines
1409 bytes
mcastle@cs.umr.edu (Michael R Castle) writes:
>I'm trying to use Turbo C++ 1.0 to compile the GNU swapping-spawn library.
>
>The library was originally designed for MSC 6.0 and uses a construct that 
>forces data to be stored in the code segment.
>
>Is there any similiar directive for Turbo??

I asked tech support about this a while ago.  (I was interested in putting
static data like strings in the code segment, the way Turbo Pascal does.)
Evidently, there's no way to do it.  Putting global variables in the codeseg
would cause great problems with their overlay system, so I can see why they
might not be too keen on adding such a feature.

>Anyone know of a way to accomplish this (w/o going into assembler)??

Other than extreme kludges (such as: make a dummy function you "know" is
as long as the data space you need, get a pointer to it, and typecast to
the data type you need), that's all I can think of.

swehtam bob
Technical Details
Message-ID: <1992Sep10.061746.139113@zeus.calpoly.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!usc!sol.ctr.columbia.edu!sal.wisc.edu!rat!zeus!rmathews
References: <1992Sep8.195918.22762@umr.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!usc!sol.ctr.columbia.edu!sal.wisc.edu!rat!zeus!rmathews
From: rmathews@zeus.calpoly.edu (Bob Mathews)
Subject: Re: Turbo C++--forcing vars into CSEG
Message-ID: <1992Sep10.061746.139113@zeus.calpoly.edu>
Organization: California Polytechnic State University, San Luis Obispo
References: <1992Sep8.195918.22762@umr.edu>
Date: Thu, 10 Sep 1992 06:17:46 GMT
Lines: 22