OpenQNX :: The QNX Community Portal

Aug 08, 2008 - 12:43 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 34 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
Mario Charest
Post subject: _CStrxfrm  PostPosted: Apr 11, 2007 - 03:30 PM
Guest





I'm profiling an application and I am seeing the fonction _CStrxfrm being
called a lot. It seems the fonction is called by memcpy but _CStrxfrm is an
odd function name to be called by memcpy?

- Mario
 
   
Reply with quote Back to top
garry
Post subject: Re: _CStrxfrm  PostPosted: Apr 12, 2007 - 05:04 PM
Active Member


Joined: Jun 04, 2004
Posts: 10

A debug (malloc?) lib that calls printf?

Mario Charest wrote:
Quote:
I'm profiling an application and I am seeing the fonction _CStrxfrm being
called a lot. It seems the fonction is called by memcpy but _CStrxfrm is an
odd function name to be called by memcpy?

- Mario

 
 View user's profile Send private message  
Reply with quote Back to top
Mario Charest
Post subject: Re: _CStrxfrm  PostPosted: Apr 12, 2007 - 06:41 PM
Guest





"Garry Turcotte" <garry@qnx.com> wrote in message
news:evlolg$8va$1@inn.qnx.com...
Quote:
A debug (malloc?) lib that calls printf?

I'm not sure I'm following. I'm not using the libmalloc_g library if that

is what you are asking?

Quote:
Mario Charest wrote:
I'm profiling an application and I am seeing the fonction _CStrxfrm being
called a lot. It seems the fonction is called by memcpy but _CStrxfrm is
an odd function name to be called by memcpy?

- Mario
 
   
Reply with quote Back to top
garry
Post subject: Re: _CStrxfrm  PostPosted: Apr 13, 2007 - 03:57 PM
Active Member


Joined: Jun 04, 2004
Posts: 10

Just a guess that something was overriding memcpy.
memcpy from libc does not call _CStrxfrm

Mario Charest wrote:
Quote:
"Garry Turcotte" <garry@qnx.com> wrote in message
news:evlolg$8va$1@inn.qnx.com...

A debug (malloc?) lib that calls printf?


I'm not sure I'm following. I'm not using the libmalloc_g library if that
is what you are asking?


Mario Charest wrote:

I'm profiling an application and I am seeing the fonction _CStrxfrm being
called a lot. It seems the fonction is called by memcpy but _CStrxfrm is
an odd function name to be called by memcpy?

- Mario


 
 View user's profile Send private message  
Reply with quote Back to top
seanb
Post subject: Re: _CStrxfrm  PostPosted: Apr 13, 2007 - 05:03 PM
QNX Master


Joined: Jul 28, 2006
Posts: 67

Could it be a gcc builtin? Maybe compile with
-fno-builtin.

-seanb

Garry Turcotte <garry@qnx.com> wrote:
Quote:
Just a guess that something was overriding memcpy.
memcpy from libc does not call _CStrxfrm

Mario Charest wrote:
"Garry Turcotte" <garry@qnx.com> wrote in message
news:evlolg$8va$1@inn.qnx.com...

A debug (malloc?) lib that calls printf?


I'm not sure I'm following. I'm not using the libmalloc_g library if that
is what you are asking?


Mario Charest wrote:

I'm profiling an application and I am seeing the fonction _CStrxfrm being
called a lot. It seems the fonction is called by memcpy but _CStrxfrm is
an odd function name to be called by memcpy?

- Mario


 
 View user's profile Send private message  
Reply with quote Back to top
Warren Deitch
Post subject: Re: _CStrxfrm  PostPosted: Apr 14, 2007 - 05:26 AM
Guest





Are you sure you are using the same version of libc in your debug
environment that is used in the target. I have seen 'apparent'
discrepancies like this when the versions are NOT the same.

Sean Boudreau wrote:
Quote:
Could it be a gcc builtin? Maybe compile with
-fno-builtin.

-seanb

Garry Turcotte <garry@qnx.com> wrote:

Just a guess that something was overriding memcpy.
memcpy from libc does not call _CStrxfrm


Mario Charest wrote:

"Garry Turcotte" <garry@qnx.com> wrote in message
news:evlolg$8va$1@inn.qnx.com...


A debug (malloc?) lib that calls printf?


I'm not sure I'm following. I'm not using the libmalloc_g library if that
is what you are asking?



Mario Charest wrote:


I'm profiling an application and I am seeing the fonction _CStrxfrm being
called a lot. It seems the fonction is called by memcpy but _CStrxfrm is
an odd function name to be called by memcpy?

- Mario


 
   
Reply with quote Back to top
Mario Charest
Post subject: Re: _CStrxfrm  PostPosted: Apr 16, 2007 - 01:06 PM
Guest





"Warren Deitch" <warren.deitch@transtoll.com> wrote in message
news:evpoet$aee$1@inn.qnx.com...
Quote:
Are you sure you are using the same version of libc in your debug
environment that is used in the target. I have seen 'apparent'
discrepancies like this when the versions are NOT the same.

Hum, the code is build and run on the same QNX6 machine. But I'm debugging
from a windows host and yes they don't have the same version NTO is
SP3+6.3.2 and Windows is SP3 only.

Quote:

Sean Boudreau wrote:
Could it be a gcc builtin? Maybe compile with
-fno-builtin.

-seanb

Garry Turcotte <garry@qnx.com> wrote:

Just a guess that something was overriding memcpy.
memcpy from libc does not call _CStrxfrm


Mario Charest wrote:

"Garry Turcotte" <garry@qnx.com> wrote in message
news:evlolg$8va$1@inn.qnx.com...


A debug (malloc?) lib that calls printf?


I'm not sure I'm following. I'm not using the libmalloc_g library if
that is what you are asking?



Mario Charest wrote:


I'm profiling an application and I am seeing the fonction _CStrxfrm
being called a lot. It seems the fonction is called by memcpy but
_CStrxfrm is an odd function name to be called by memcpy?

- Mario


 
   
Reply with quote Back to top
Mario Charest
Post subject: Re: _CStrxfrm  PostPosted: Apr 16, 2007 - 02:43 PM
Guest





"Mario Charest" <root@127.0.0.1> wrote in message
news:evvs56$ace$1@inn.qnx.com...
Quote:

"Warren Deitch" <warren.deitch@transtoll.com> wrote in message
news:evpoet$aee$1@inn.qnx.com...
Are you sure you are using the same version of libc in your debug
environment that is used in the target. I have seen 'apparent'
discrepancies like this when the versions are NOT the same.

Hum, the code is build and run on the same QNX6 machine. But I'm
debugging from a windows host and yes they don't have the same version NTO
is SP3+6.3.2 and Windows is SP3 only.

Good catch, thanks. That was it. Once I updated the windows host to 6.3.2
everything was fine.

Quote:


Sean Boudreau wrote:
Could it be a gcc builtin? Maybe compile with
-fno-builtin.

-seanb

Garry Turcotte <garry@qnx.com> wrote:

Just a guess that something was overriding memcpy.
memcpy from libc does not call _CStrxfrm


Mario Charest wrote:

"Garry Turcotte" <garry@qnx.com> wrote in message
news:evlolg$8va$1@inn.qnx.com...


A debug (malloc?) lib that calls printf?


I'm not sure I'm following. I'm not using the libmalloc_g library if
that is what you are asking?



Mario Charest wrote:


I'm profiling an application and I am seeing the fonction _CStrxfrm
being called a lot. It seems the fonction is called by memcpy but
_CStrxfrm is an odd function name to be called by memcpy?

- Mario




 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.