| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | read from cd rom |
Will Honea wrote in a message to Mike Bilow: MB> Watcom C++ definitely aligns by default on doubleword boundaries. MB> I checked the documentation and you are right that it claims to MB> align by default on byte boundaries, but this seems to be wrong MB> when checked against generated code. I suspect that this changed MB> at some point in the compiler and was forgotten in the MB> documentation. In my opinion, any 32-bit compiler should default MB> to doubleword alignment, and GCC gets a fair amount of speed from MB> doing so. WH> Mike, Watcom (10b) defaults to byte bounds for 16 bit code - WH> both C and C++ - as I found out the hard way porting some WH> MSC 6.0 sources. I never even looked at the 32 bit so you WH> probably saved me some head scratching when I try to access WH> the old data files from the OS/2 port :<} I've worked extensively with Watcom 16-bit code, but I can't say that I ever tried using the compiler default on this. My standard makefile always sets the packing explicitly, so I have not run into any problems. Where Watcom will burn you badly when moving from Microsoft C 6.0 is in segment alignment, since Watcom's 16-bit OS/2 compiler expects "para" aligned segments and MS C6 requires only "dword" aligned segments. If you try to link a MS C6 library, such as IBM's DHCALLS.LIB for device drivers, with code generated by Watcom, then the odds are that the linker will mess up (although it can work by coincidence). -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 323/107 170/400 396/1 270/101 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™.