E.B. Dreger [[EMAIL PROTECTED]] wrote : > I guess I'll run with that for now. Off the top of my head, the > only feature file2c can't provide is user-specified data > alignment. (Unless, of course, someone corrects me and alerts me > to a C preprocessor directive similar to assembly's ".align".) >
How about putting the aligned data into a structure? gcc will align the fields of the structure intelligenetly, at least. You'll need to put padding on the end of the structure so that each struct will be properly aligned, but that's no big deal. Gcc will do the right thing when it sees a large const like that, and align the whole thing in .data. If you want specific aligment, you could then use gcc's __alignment__((n)) attribute. It's not portable, but the same alignment doesn't always make sense on different platforms anyways. -- Jonathan Mini <[EMAIL PROTECTED]> http://www.haikugeek.com "He who is not aware of his ignorance will be only misled by his knowledge." -- Richard Whatley To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message