RE: Re: static initializer

"Liechty Ronald-RAT109" <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers
Message-ID <A100FEB1DF38CC4C9D0B6BFBDC134426022F12FC@az33exm21.fsl.freescale.net>

 
coles555 wrote:


> I think you are right about the PB board not having enough memory 
> for C++ code. But it's wierd that only _ctors and _dtors are ones 
> outside of memory range. Everything else seems to be within bound 
> when I view the global variables address.

I wonder if this is because they are inlined.

--  
Ron Liechty  
Ombudsman Freescale Developer Technology
[email protected]

--- In [email protected], "murphynetuk" <murphynetuk@y...> wrote:
>
> > 
> > As Ian is implying, converting to C instead of C++ may be your only 
> hope ... but
> > you can try things like removing formatter and stream library calls 
> from your
> > code (which are implicit with C++ rather than explicit with C).
> > 
> > Randall
> >
> 
> Commenting out the <iostream> stuff took it down to 2.2kb.
> Replacing it with printf took it back up to 16kb.
> 
> And there was I thinking that printf was bloated...
> 
> Ian



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/dN_tlB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------------
To learn more about Freescale Microcontrollers, please visit
http://www.freescale.com/mcu


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/MPC500/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.