On Tue, 18 Jan 2000, Sandesh Rao wrote:

> Can't you configure the alignment in the C compiler. I believe in the good
> o'l TC days there was such an option . The con is that you get unoptimized
> code which doesn't align in memory ( as mentioned by someone .. the word
> boundary alignment in a 32 bit system ) and may not run as fast .. ( Was it
> the memory model size .. large / medium / small  ?? )
> There is also a function that could perform this function .. The only
> problem is that I've got DRAM .. Until the next refresh ..

Well, according to the C faq, that I've now read, it is a bad idea to
change the default word alignment.  It may work with one compiler, but is
not guaranteed to work with any other compiler.  It is also not ANSI
standard. TC did not have pure ANSI C as is documented in the help files,
but gcc is much closer to ANSI and POSIX compliance than any compiler I've
seen.

The best way to solve my problem is to read each element one at a time.

Philip

To subscribe / unsubscribe goto the site www.ilug-bom.org ., click on the mailing list 
button and fill the appropriate information 
and submit. For any other queries contact the ML maintener

Reply via email to