|
From: | Muhamad Ikhwan Ismail |
Subject: | RE: [lwip-users] Misalignment problems on PowerPC (little endian mode) |
Date: | Tue, 13 May 2008 09:36:49 +0000 |
I could, but mixed compilation between big endian and little endian is not supported unfortunately. But that idea is definitely a good one. @all The misalignment I am getting is due to the stripped ethernet header which then puts the ip address fields in the ip header in a non aligned address for a 32 bits variable. Structure packing should then (if it works) packs the structure e.g. #pragma pack (1) in smallest alignment (byte), and generate the corresponding assembler codes that access the elements of the structure bytewise, preventing misalignment due to access of multi byte members in a non-aligned boundary. Am I correct ? Or am I expecting too much from my compiler ? Greetings Ikhwan
Make Windows Vista more reliable and secure with Windows Vista Service Pack 1. Learn more. |
[Prev in Thread] | Current Thread | [Next in Thread] |