This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: project porting troubles!


> In the old project I needed to align an array as long word.
> It was simple to use the following instructions:
> 
> #pragma SECTION CONST=my_Data
> const unsigned char my_Array[344537] = 
> {
> 	0xff,
> 	0xff,
> 	0x62,
> 	0xff,
>         ...
> }
	[Stephane Dalton]  you can basically do the same using the
__attribute__ of gcc... you can use several keywords such as section, packed
and of course align, refer to the info pages.

	Enjoy



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]