Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!decvax!genrad!panda!talcott!harvard!seismo!brl-tgr!tgr!sde@Mitre-Bedford From: sde@Mitre-Bedford Newsgroups: net.lang.c Subject: Re: Un-alignment in structures Message-ID: <9652@brl-tgr.ARPA> Date: Mon, 1-Apr-85 11:36:11 EST Article-I.D.: brl-tgr.9652 Posted: Mon Apr 1 11:36:11 1985 Date-Received: Sun, 7-Apr-85 10:35:34 EST Sender: news@brl-tgr.ARPA Lines: 25 |>How about adding keyword(s) 'aligned/unaligned' to deal with the pointer |>alignment question? Of course, it would help to be able to specify a |>general (un)alignment default. | |Ugh! The last thing we need is a couple more keywords. How about adding |it as a compiler option. The '-f' option would tell the compiler to |optimize code for fast running (ie, do alignment of structures so you can |access their elements fast), otherwise make the code small (don't pad |structures to save space). Adding two new keywords seems rather |unnecessary. |-- | Curt Sampson ihnp4!alberta!jeff And how would the compiler option know which structures &/or sub-structures are to be aligned and which are to be packed? (But if the comment was only on the question of "...default", then "... TWO new keyowrds " is not correct. Also, it would be nice to be able to treat such a default as similar to conditional compilation, so that for debugging purposes, a section's default could be changed to determine if a problem lay therein. This certainly could not be done by compiler options ( even though, to grant you a point, you could do somthing like 'cc -.. ," or whatever, assuming arbitrarily long command length). David Eisenberg sde@mitre-bedford