[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] -fpacked-struct compiler option
From: |
Anton Erasmus |
Subject: |
[avr-gcc-list] -fpacked-struct compiler option |
Date: |
Thu, 06 Jan 2005 22:41:01 +0200 |
Hi,
The makefile example that comes with WinAVR uses the
-fpacked-struct compiler option.
The gcc documentation has the following warning on this option:
Warning: the -fpack-struct switch causes GCC to generate code that is not
binary
compatible with code generated without that switch. Additionally, it makes the
code
suboptimial. Use it to conform to a non-default application binary interface.
So why is this option used in the example makefile. I would have thought that
with the
avr being an 8-bit architecture that structures would automatically be packed,
as there
is no advantage in accessing non-byte alligned data compared to accessing byte
alligned data.
Regards
Anton Erasmus
--
A J Erasmus
- [avr-gcc-list] -fpacked-struct compiler option,
Anton Erasmus <=