On Tue, 2007-09-04 at 13:17 +0200, [EMAIL PROTECTED] wrote: > It is related to structure packing that seems to be sometimes incompatible > with > what WinCE API expects. See the example below :
I'm not sure exactly what you suspect, but when I had such problems way back when I was young, the way to test was using a simple program like this : #include <stdio.h> #include <windows.h> struct s { DWORD a; DWORD b; BOOL c; } ss; main() { wchar_t msg[256]; swprintf(msg, L"size %d\r\nb at %d\r\nc at %d", sizeof(ss), ((char *)&ss.b) - ((char *)&ss), ((char *)&ss.c) - ((char *)&ss)); MessageBoxW(0, msg, L"Feedback", 0); } On my PDA this shows : size 12 b at 4 c at 8 This doesn't reveal everything that might go wrong. Another one might be alignment of structure addresses on a multiple of 4 or so. I've not tested that here. Does anyone know whether rules for stuff like this is in the ARM ABI ? Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel