home *** CD-ROM | disk | FTP | other *** search
- Read Me for WATCOM C9.01/386
- ============================
-
- See "Read Me First" booklet for list of changes from V8.5 to V9.0.
-
- Structure alignment changes
- ===========================
- If you use the -zp2, -zp4, or -zp8 options for packing structures, you
- may not be able to mix object files compiled with previous versions of
- the compiler. The new compiler determines the worst alignment required
- for a structure, whereas older versions assumed the worst alignment.
- This change will be noticed when you have fields within a structure
- that are themselves a structure.
- For example, suppose the following fragment is compiled with -zp4
-
- struct char_struct {
- char c;
- }; offsets of fields within struct
- struct second_struct { V8.5 V9.0
- struct char_struct s1; 0 0
- char c2; 4 1
- };
- The new compiler determines that "struct char_struct" only requires one
- byte alignment, and therefore does not add any padding bytes to the
- structure. Thus, the field "c2" will start at offset 1 instead of 4.
-
-