dg@hpl.hp.com (Dipankar Gupta) (10/31/90)
I would like to know of C compilers for OS/2 and their relative merits/demerits. I have the following gripes with MS C5.10 that I currently use: 1. Can't generate native 386 code.\ 2. Pointer arithmetic is 16 bits wide. I use a lot of *large* data-structures (created with DosAllocHuge ()), and pointer arithmetic bombs at segment boundaries. It's plain painful to use a cast thus: ULONG HUGE *x, HUGE *y; ULONG PDiff; /* a difference > 16K means another segment ... */ x = (ULONG HUGE *)(y + PDiff); or worse still, transform x++ to x = (ULONG HUGE *) (x + 0x1L) Downright ridiculous. Are there any compilers (I use OS/21.1 BTW) that don't have these problems? Thanks Dipankar Gupta dg@hplb.hpl.hp.com