TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Paul Rider
from: Mike Bilow
date: 1995-05-10 04:35:22
subject: Watcom C++, 16 bit apps..

Paul Rider wrote in a message to Mike Bilow:

 MB> but it does work.  Also, the Watcom compiler is a lot 
 MB> cheaper than the Borland compilers to get the same 
 MB> capabilities, since the Watcom compiler will make DOS, 
 MB> DOS extended, Windows, Windows NT, OS/2 16-bit, and 

 PR> What would be the advantage of a 16 bit os/2 app ? A little
 PR> bit faster code I guess ?

There are several advantages to 16-bit OS/2 code.  Some OS/2 components,
such as physical device drivers, must be 16-bit, so you need a compiler
that makes 16-bit code.  Certain system DLLs must also be 16-bit, as when
you register a custom replacement for a Vio, Kbd, or Mou function.  Any
code that itself calls 16-bit API functions, such as the Vio API, may run
faster than 32-bit code because it avoids thunking.  In general, 32-bit
code will probably be faster than 16-bit code, but a small model 16-bit
OS/2 program generated with a modern compiler such as Watcom might
outperform a comparable 32-bit program.

 PR> Well, I sure wish I'd of gotten this message about a week
 PR> ago... Oh well, if the newer Borland compilers are as lame
 PR> as the one you used, I can see me switching over to Watcomm
 PR> as well. borland never arrived on Friday as expected, now
 PR> won't be in till tuesday...Do you know if they allow labels
 PR> in their inline assembly yet ? or is it even supported in
 PR> the os/2 compiler...

I know that Watcom does allow labels in in-line ASM, and I believe that
Borland does although I cannot speak from experience about Borland. 
Borland will allow compiling via ASM, so that should in theory support
anything that the assembler itself (TASM) supports.
 
-- Mike


---
* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 323/107 150 3615/50 396/1 270/101 105/103 42 712/515 711/808 809 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™.