* RE: project porting troubles!
@ 2000-04-19 8:20 Stephane Dalton
0 siblings, 0 replies; 2+ messages in thread
From: Stephane Dalton @ 2000-04-19 8:20 UTC (permalink / raw)
To: Luca Manai, crossgcc
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* project porting troubles!
@ 2000-04-19 3:44 Luca Manai
0 siblings, 0 replies; 2+ messages in thread
From: Luca Manai @ 2000-04-19 3:44 UTC (permalink / raw)
To: crossgcc
Dear Cross Gcc users,
I'm trying to port a project from this environment:
- HP commercial cross compiler for m68000
running on an old HP-workstation
to this environment:
- EGCS 1.1.2 cross compiler for m68000 (already compiled)
running on Sun solaris 2.6 workstation
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,
...
}
to set the section name for 'my_Array' to 'My_Data'
and than at linking time instruct the linker to align the section
my_Data as long word.
Is it possible to do something similar with EGCS?
Thanks.
Luca MANAI.
--
Luca Manai mailto:Luca.Manai@netit.alcatel.it
ALCATEL Italia - Transmission System Division
Via Trento, 30 - 20059 Vimercate (MI) - Italy
Tel: (+39) 039 686.9181 - Fax: (+39) 039 686.3590
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-04-19 8:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-19 8:20 project porting troubles! Stephane Dalton
-- strict thread matches above, loose matches on Subject: below --
2000-04-19 3:44 Luca Manai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).