[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rtl] off topic
>>>>> "Alexander" == Alexander Lichius <Alexander.Lichius@ruhr-uni-bochum.de> writes:
Alexander> Hi i have a question not really regarding rtlinux in
Alexander> special. we have to communicate with our a/d adaptor which
Alexander> is realtime capable on its own. the problem is that the
Alexander> task which is installed directly on the adaptors cpu was
Alexander> compiled under DOS/WINDOWS. The task running on the pc
Alexander> (now under linux) was compiled with egcs - which has a
Alexander> 4-byte alignment in contrast to the 1-byte alignment from
Alexander> DOS compilers....
You need __attribute__ ((packed)) on your structures. Look in the
info file, under "C extensions", "Variable attributes".
paul
- References:
- off topic
- From: Alexander Lichius <Alexander.Lichius@ruhr-uni-bochum.de>