Experimental Physics and
| |||||||||||||||||
|
Is there a compiler switch on the GNU compiler to turn off the RISC byte alignment? Define the specific structure you want with the gcc-specific syntax __attribute__((packed). You do that like this: struct foo { char a; short b __attribute__((packed)); int c __attribute__((packed)); }; I think you can also put the attribute on the structure itself (after the closing {}) to pack all fields together. Variable attributes in gcc are described here: http://gcc.gnu.org/onlinedocs/gcc/Type-Attributes.html HTH, - Andrew -- Dear God, I didn't think orange went with purple until I saw the sunset you made last night. That was really cool. - Caro
| ||||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |