From: "Mauricio Fernández" Date: 2003-09-11T17:35:15+09:00 Subject: Re: Nested struct alignment summarized On Thu, Sep 11, 2003 at 04:07:14PM +0900, Robert Feldt wrote: > So the situation look grim; even if we find a portable > way to check how a certain compiler lays things out > it may not lay things out in the same way for different > structs. There could be special situation where it changes the layout. > > So is there anything we can do? Expand the current method (list of structure types in dl.h (ALIGN_*)), so that the alignments for a growing number of structs are determined at compile time? Of course, that'd require some code to check for structural equivalence of emm structures. -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com Yes I have a Machintosh, please don't scream at me. -- Larry Blumette on linux-kernel