TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Daniel Lynes
from: Jonathan de Boyne Pollard
date: 1996-12-23 11:57:28
subject: Protected mode diffef

DL>
  > hl> style, to ask the OS for more memory at every malloc.  Get a better
  > hl> Win compiler and insert correct code: it's your heap, you own it and
  >
  > In that case, I suppose Watcom must be a lousy OS/2 and NT compiler.  I'm
  > using it on both platforms.
  >
  > Sorry, I just didn't feel like buying a separate compiler for each platform
  > I wanted to target.
DL>

  Invalid assumptions and invalid conclusions.  Think about things for a
  moment, and you'll find that Hugo is correct _even_though_ you use
  Watcom C++ (which you didn't say in your original message, by the way,
  so quite how you expected Hugo to know that is beyond me).

  Hugo and I have both said that you've encountered a difference in the
  heap management used by your Win32 C++ compiler's runtime library and
  your OS/2 C++ compiler's runtime library -- a difference that indicates
  that the OS/2 one is the more efficient of the two.

  Just because you use Watcom C++ doesn't mean that it uses the same
  runtime library and heap management for both.  This is very rarely the
  case for any compiler (I wrote a cross-platform C++ runtime library
  once, but that was precisely because the one supplied used memory
  semantics that were tied to a specific platform.  Heap management is
  often "tuned" for the memory semantics of individual platforms.).

  And in fact it isn't the case for Watcom C++.  The OS/2 runtime library
  is in \WATCOM\LIB386\OS2, and the Win32 runtime library is in
  \WATCOM\LIB386\NT.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)
SEEN-BY: 270/101 711/401 409 410 413 430 808 809 934 955 712/407 515 624 628
SEEN-BY: 713/317
@PATH: 440/4 141/209 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.