This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
this patch annotates approximately 200 global variables
with gcc alignment attributes.
use like this:
patch -d ${ECOS_REPOSITORY}/.. -p1 < thisfile
(global variables of kind:
char stack[STACK_SIZE]
char stack[NTHREAD][STAC_SIZE]
char mempool[something]
char space[N*sizeof(class ..)];
)
a new preprocessor define in infra/current/include/cyg_type.h
CYGBLD_ANNOTATE_ALIGNED
controls this annotation. it defaults to
__attribute__ ((aligned))
which means, gcc will align the object so it fulfills
wort-case requirements for any data type of the current
CPU target architecture.
---------------------------
hope this is of any use for somebody,
its a bit silent on those ecos lists,
especially a bit unidirectional.
have a good day,
Robert Larice
Attachment:
_patch_align_annotation
Description: _patch_align_annotation
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |