This is the mail archive of the ecos-discuss@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]

Re: configuring heap memory


Andrea Acquaviva wrote:
> > The end of mlt_i386_pc_floppy.ldi:
> >
> >     CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
> >     CYG_LABEL_DEFN(__heap2) = ALIGN (0x8);
> >     SECTIONS_END
> > }
> >
> > Those seemed to do the trick for me!
> Thanks David.
> This way heap2 will be contiguous to heap1.
> How can I specify a different start address for heap2?

Simply specify the address in the appropriate line in the .ldi file, e.g.:

CYG_LABEL_DEFN(__heap2) = 0x100000;

or you can use expressions - see the GNU ld manual on linker scripts for
details of what's permitted.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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