#14277 - poslundc - Sat Jan 03, 2004 7:53 pm
OK, here's a new one.
Now I'm getting bus errors if I attempt to link code that assigns a struct that is larger than 48 bytes. So for example:
I can still address individual members, it's just when trying to assign the entire struct that I get an error.
I gather that "bus error" on my compiler/linker is a more generic term it uses instead of the specific errors it should be generating, but I'm not certain what that specific error is.
Is there a documented limit to struct sizes somewhere that I haven't been able to track down?
Thanks,
Dan.
Now I'm getting bus errors if I attempt to link code that assigns a struct that is larger than 48 bytes. So for example:
Code: |
struct ex1
{ int a4, a8, a12, a16, a20, a24, a28, a32, a36, a40, a44, a48, a52; }; struct ex2 { int a4, a8, a12, a16, a20, a24, a28, a32, a36, a40, a44; }; struct ex1 a = (struct ex1) {a20: 12345}; // generates bus error struct ex2 b = (struct ex2) {a20: 12345}; // does not generate error |
I can still address individual members, it's just when trying to assign the entire struct that I get an error.
I gather that "bus error" on my compiler/linker is a more generic term it uses instead of the specific errors it should be generating, but I'm not certain what that specific error is.
Is there a documented limit to struct sizes somewhere that I haven't been able to track down?
Thanks,
Dan.