home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / msdos / programm / 10503 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!slsvaat!us-es.sel.de!reindorf
  3. From: reindorf@us-es.sel.de (Charles Reindorf)
  4. Subject: Re: 'new'ing >64K Objects in BC++
  5. Message-ID: <1992Nov11.105817.14656@us-es.sel.de>
  6. Sender: news@us-es.sel.de
  7. Organization: SEL-Alcatel Line Transmission Systems Dept. US/ES
  8. References: <1992Nov8.181852.21103@piccolo.cit.cornell.edu> <83366@ut-emx.uucp>
  9. Date: Wed, 11 Nov 92 10:58:17 GMT
  10. Lines: 30
  11.  
  12. In article <83366@ut-emx.uucp>, jamshid@ut-emx.uucp (Jamshid Afshar) writes:
  13. |>
  14. |> [ etc ]
  15. |>
  16. |> Maybe.  At least then you can write real C code without relying on
  17. |> compiler extensions.  Btw, PharLap sells a DOS Extender that works
  18. |> with BC++ or MSC.  I believe that a 16-bit Extender allows you to
  19. |> access all your machine's memory (up to 16MB), but size_t and int are
  20. |> still 16-bits, so each object is limited to 64K.  A 32-bit Extender
  21. |> (like the one in DJGPP) makes them 32-bits so there are no 64K limits.
  22. |> 
  23.  
  24. At this stage it should be pointed out that you need more than a 32-bit
  25. extender to get rid of the annoying DOS limitations. You need a compiler
  26. which generates code using 32-bit addresses in a flat addressing structure
  27. (in protected mode). Currently, for DOS, this is the Zortech compiler, which
  28. I personally have not used but which people say is good. It also has the 
  29. necassary DOS extenders.
  30.  
  31. On the other hand, a 16-bit DOS extender can generally be used with code generated
  32. by a normal 16-bit compiler and uses some mind-boggling jiggery-pokery to get it to
  33. work.
  34.  
  35. |> [ etc ]
  36. |> 
  37. |> Jamshid Afshar
  38. |> jamshid@emx.utexas.edu
  39. |> 
  40. |> 
  41. |> 
  42.