🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Turbo C++--forcing vars into CSEG

#1366
From: Michael R Castle
Date: Tue, 08 Sep 1992 19:59
21 lines
1193 bytes
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 was hoping that using something
like 

int _cs var1; 

would do that, but the compiler doesn't like it.  I'm wondering if just 
replacing _cs with near would do the trick, but I'm not sure that that just
doen't fool with the data segment.

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

all help appreciated,
mrc

also: anyone know what the typedef/struct  off_t  is, in MSC???
Technical Details
Message-ID: <1992Sep8.195918.22762@umr.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcs213d.cs.umr.edu!mcastle

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcs213d.cs.umr.edu!mcastle
From: mcastle@cs.umr.edu (Michael R Castle)
Subject: Turbo C++--forcing vars into CSEG
Date: Tue, 8 Sep 1992 19:59:18 GMT
Nntp-Posting-Host: mcs213d.cs.umr.edu
Organization: University of Missouri - Rolla
Sender: cnews@umr.edu (UMR Usenet News Post)
Originator: mcastle@mcs213d.cs.umr.edu
Message-ID: <1992Sep8.195918.22762@umr.edu>
Lines: 22