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

  1. Xref: sparky comp.os.msdos.programmer:9253 alt.msdos.programmer:2345
  2. Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
  3. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcs213d.cs.umr.edu!mcastle
  4. From: mcastle@mcs213d.cs.umr.edu (Michael R Castle)
  5. Subject: Re: Turbo C++--forcing vars into CSEG
  6. References: <1992Sep8.195918.22762@umr.edu> <1992Sep10.061746.139113@zeus.calpoly.edu> <exuptr.479.716145032@exu.ericsson.se>
  7. Date: Fri, 11 Sep 1992 01:02:41 GMT
  8. Nntp-Posting-Host: mcs213d.cs.umr.edu
  9. Organization: University of Missouri - Rolla
  10. Sender: cnews@umr.edu (UMR Usenet News Post)
  11. Message-ID: <1992Sep11.010241.5045@umr.edu>
  12. Lines: 37
  13.  
  14. In article <exuptr.479.716145032@exu.ericsson.se> exuptr@exu.ericsson.se (exuptr@exu.ericsson.se) writes:
  15. >
  16. >>mcastle@cs.umr.edu (Michael R Castle) writes:
  17. >>>I'm trying to use Turbo C++ 1.0 to compile the GNU swapping-spawn library.
  18. >>>
  19. >>>The library was originally designed for MSC 6.0 and uses a construct that 
  20. >>>forces data to be stored in the code segment.
  21. >>>
  22. >>>Is there any similiar directive for Turbo??
  23. >
  24. >Maybe we can solve the origional problem.  How much data do you need to pass?
  25. > ----------------------------------------------------------------------------
  26. >    "This must be Thursday.  I never could get the hang of Thursdays"
  27. It appears to be only about 1k of data (probably half that, but I didn't add
  28. up the bytes).  Apparently everything in the text and data segments get swapped
  29. out (some of code seg  too, I assume, or it defeats the purpose).  Just that 
  30. forcing these pointers to the swapped memory make it easy to just swap the 
  31. data and text segments without much worry.
  32.  
  33. I don't know any asm directives, so I don't know how to attack the problem
  34. from the point of view of using a #define with asm directives to place the
  35. location of the variables.
  36.  
  37. I could just compile to asm, and frob that to move location of the vars, but
  38. I don't have TASM.  
  39.  
  40. The reason for all this is to try to figure out why the hell GNU-Make crashes 
  41. on my system (I took everything out of config.sys/autoexec.bat, so no 
  42. conflicts there).  I suppose I could just bypass the whole problem, and make
  43. a library just does desqview calls that, instead of spawing in the same session,
  44. starts up a new session to execute the command (just like gnu-make does on a 
  45. unix system :-).  But I would like to solve to original problem, too.
  46.  
  47. Please, no suggestions to using another make or swapping library.  I've made my
  48. decision to use these tools, and will stick by them, problems and all.
  49.  
  50. mrc
  51.