|
Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006
Transplant Procedure The same procedures, and the window is no running Suse Linux compiler, the Solaris, the operating error alone. "Bus error (invalid address alignment)" |
Transplant Procedure Bus address?
Solaries address the compiler re-alignment is done? Tracking error can look at the code? |
Transplant Procedure However, in Windows and Linux have no problems.
Assignment Statements place is a mistake.
Similar.
PInfo->;s_addr = ntohl (* (unsigned long *) pBuf); |
Transplant Procedure Basically, one can be certain that the memory alignment errors. ^_^. |
Transplant Procedure Can explain the detailed points. .
What are the implications of the Assignment Memory Alignment ah. .
I used the pack (1), compiler is not filled, or the same mistakes. . .
Gets advice. . . |
Transplant Procedure In SUN machines, even if you use pack will still occur Bus wrong. This is the sparc architecture decisions.
A careful inspection procedures for the sharing of your body and forced conversion, which is often the problem areas. |
Transplant Procedure But change is not mandatory, ah would translation errors :)
How to resolve ah. . |
Transplant Procedure -->
Really know whether to laugh or cry. Your own procedures, their own amendments! Em24 : : : : em24 |
Transplant Procedure But solaris Why must this be done?
Not a programmer is required to be responsible for their own structure alignment?
If considered what about the alignment also? Class? |
Transplant Procedure Or not. . |
Transplant Procedure -->
Sparc procedures sufficient to enable the collapse of the swap. PBuf unless the value happens to be an integer multiple of 8 (or an integral multiple of 4, you try it). This system is based on the consideration of the limitations and efficiency.
[code]
Int a[2];
Char *p;
P = (char *) a;
P. 20 +6 = 26 and finally 26-8 1;
* ((Int *) p) = 1 LEAVES OF 13 SPECIES OF LAURACEAE bus error */
[/code]
In the above code should lead sparc bus error, I have not tested (not loom today). |
Transplant Procedure If the upper floors, the basic pBuf certainly is not (unsigned long) border. In 4 bytes, it is the 32/64 system.
This is certainly not the compiler asked to say, probably because pBuf Lane from the packed stream. |
Transplant Procedure Upstairs mean is that I pBuf should be changed to ensure the data is in 4 byte alignment? ?
Is that right?
I determined that I would like to ask how the procedure is 32 or 64? |
Transplant Procedure , You should change to ensure the data is pBuf in 4 byte alignment, and if you want to cast the type (for example, unsigned long), in 4 bytes.
I identified 32 or 64 of the procedures are :
";file Myprogram |
| |