TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Charles Gaefke
from: Rob Basler
date: 1996-07-08 22:47:00
subject: `Unrolling the loop`

CG>    With one of my programs, made with Watcom C/C++ 10.6, if I optimize by
CG>"unrolling the loops", my program will not run properly in
a DOS window unde
CG>OS/2.  Yet it runs fine in a true MS-DOS session.  Anyone have any ideas? :)

You didn't say what wasn't working, but most likely you've got a wacky
pointer that is trashing part of OS/2 dos, but not part of MS-DOS since
they are quite different in where they put everything.  If this is a
text mode program, try compiling it as an OS/2 fullscreen app, you'll
probably get a GP fault on the line that is messing up.  Watch for
NULL pointers, or any str* or mem* functions, they overwrite memory all
the time if you aren't very careful.

Rob.
___
 X SLMR 2.1a X The truth is out there.

--- Maximus/2 3.01
* Origin: Frog Hollow Port Moody BC 604-469-0264/0284 (1:153/290)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 517 628 713/888 800/1
@PATH: 153/290 2 716 920 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™.