Ok,
this is possible:
1. Define sections, the force their addresses at the link stage.
2. Define void * then cast this to your actual vars.
3. Use alias declaration:
type A asm("0x202"); /* They should be defined in
type B asm("0x202"); _every_ file */
...etc.
4. use malloc :)
On Tuesday 04 February 2003 08:58, Oleg Skydan wrote:
> Hi All,
>
> I want to know is it possible to define
> some variables in section A, another variables in B,
> another ones in section C, and then force ld to start
> all those sections from the same location in RAM.
> (The actual start address is not critical, I need just to put
> variables that have no simultaneous use to the same
> memory. This will reduce the memory requirements.
> MSP430 does not have a plenty of RAM :( ).
>
> I know I can use structs and unions, but it looks ugly, aspecially when
> variables are used by functions from the different files.
>
> Any suggestion ?
>
> Thanks,
> Oleg.
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> Mspgcc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
--
/********************************************************************
("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ
`6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys
(_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44
_..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia
(il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314
********************************************************************/