home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9168 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.2 KB

  1. Xref: sparky comp.os.msdos.programmer:9168 alt.msdos.programmer:2329
  2. Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
  3. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcs213d.cs.umr.edu!mcastle
  4. From: mcastle@cs.umr.edu (Michael R Castle)
  5. Subject: Turbo C++--forcing vars into CSEG
  6. Date: Tue, 8 Sep 1992 19:59:18 GMT
  7. Nntp-Posting-Host: mcs213d.cs.umr.edu
  8. Organization: University of Missouri - Rolla
  9. Sender: cnews@umr.edu (UMR Usenet News Post)
  10. Originator: mcastle@mcs213d.cs.umr.edu
  11. Message-ID: <1992Sep8.195918.22762@umr.edu>
  12. Lines: 22
  13.  
  14.  
  15. I'm trying to use Turbo C++ 1.0 to compile the GNU swapping-spawn library.
  16.  
  17. The library was originally designed for MSC 6.0 and uses a construct that 
  18. forces data to be stored in the code segment.
  19.  
  20. Is there any similiar directive for Turbo??  I was hoping that using something
  21. like 
  22.  
  23. int _cs var1; 
  24.  
  25. would do that, but the compiler doesn't like it.  I'm wondering if just 
  26. replacing _cs with near would do the trick, but I'm not sure that that just
  27. doen't fool with the data segment.
  28.  
  29. Anyone know of a way to accomplish this (w/o going into assembler)??
  30.  
  31. all help appreciated,
  32. mrc
  33.  
  34. also: anyone know what the typedef/struct  off_t  is, in MSC???
  35.  
  36.