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: GCC version


On Mon, 2003-06-09 at 05:40, David Brennan wrote:
> I have just started testing my ported application.  I found an annoying
> little "feature" in gcc 3.2.1, or insight 5.3.  Inlined functions do not
> report to the call stack.  

That makes sense. Inlined functions only _appear_ to be functions.
Inlining means that the function call is replaced with the function code
by the compiler. So there simply is no function call, or return address
on the stack or whatever gdb might need to build a call stack.

> I did a brief search on the gcc and gdb
> mailing lists and I can't tell whether this would be fixed by upgrading
> the compiler.  It might also just be a compiler option.

Go for the compiler. Prevent it from inlining functions and gdb will
show them in the call stack. I am not sure with gcc, but it could be as
simple as turning off the optimizer.

> 
> Anyways, my question is, the documentation says that 3.2.1 is the
> recommended compiler for eCos.  Are there any issues with trying a newer
> version?  

Don't know. Why would you do that ?

Hth,
Bob

> 
> Thanks
> David Brennan  
> 
> 
-- 
----------------------------------------------------------------------
ir. Bob Koninckx
Katholieke Universiteit Leuven
Division Production Engineering,                   tel.  +32 16 322535
Machine Design and Automation                      fax.  +32 16 322987
Celestijnenlaan 300B                  bob.koninckx@mech.kuleuven.ac.be
B-3001 Leuven Belgium               http://www.mech.kuleuven.ac.be/pma
----------------------------------------------------------------------


-- 
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]