Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Thread

strange problem with GCC

strange problem with GCC

2004-10-27 by zpierre007

hi every Body,


Today i found a strange bug. 
My board (based on a LPC2106) get some data from a device. My problem 
is : if i add more or less source code in my program, the result 
change. And what is very very strange, it's the code witch I add, is 
never used by the program, it 's just "ghost function" to modify the 
lengh of the code.

So, if somebody can help me, he will be my hero !!

Re: strange problem with GCC

2004-10-27 by didier_edna

--- In lpc2000@yahoogroups.com, "zpierre007" <zpierre007@y...> wrote:
Hello,

Sounds normal, if you add a ghost function, that is never called, the 
optimalisation routines of a good compiler removes that routine.

Didier

> 
> hi every Body,
> 
> 
> Today i found a strange bug. 
> My board (based on a LPC2106) get some data from a device. My 
problem 
> is : if i add more or less source code in my program, the result 
> change. And what is very very strange, it's the code witch I add, 
is 
> never used by the program, it 's just "ghost function" to modify 
the 
Show quoted textHide quoted text
> lengh of the code.
> 
> So, if somebody can help me, he will be my hero !!

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.