home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.os.msdos.programmer:9222 alt.msdos.programmer:2336
- Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
- Path: 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
-
- 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
-
-