Skip navigation.
Home
The QNX Community Portal

View topic - _CStrxfrm

_CStrxfrm

Read-only archive of qnx.development_tools (Self-hosted graphical development with the Eclipse IDE and cross-hosted development on Solaris, Linux, or Windows) at inn.qnx.com

_CStrxfrm

Postby Mario Charest » Wed Apr 11, 2007 3:30 pm

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
Mario Charest
 

Re: _CStrxfrm

Postby garry » Thu Apr 12, 2007 5:04 pm

A debug (malloc?) lib that calls printf?

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

garry
Active Member
 
Posts: 11
Joined: Fri Jun 04, 2004 3:47 pm

Re: _CStrxfrm

Postby Mario Charest » Thu Apr 12, 2007 6:41 pm

"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
Mario Charest
 

Re: _CStrxfrm

Postby garry » Fri Apr 13, 2007 3:57 pm

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


garry
Active Member
 
Posts: 11
Joined: Fri Jun 04, 2004 3:47 pm

Re: _CStrxfrm

Postby seanb » Fri Apr 13, 2007 5:03 pm

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


seanb
QNX Master
 
Posts: 133
Joined: Fri Jul 28, 2006 5:36 pm

Re: _CStrxfrm

Postby Warren Deitch » Sat Apr 14, 2007 5:26 am

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


Warren Deitch
 

Re: _CStrxfrm

Postby Mario Charest » Mon Apr 16, 2007 1:06 pm

"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.

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


Mario Charest
 

Re: _CStrxfrm

Postby Mario Charest » Mon Apr 16, 2007 2:43 pm

"Mario Charest" <root@127.0.0.1> wrote in message
news:evvs56$ace$1@inn.qnx.com...
"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.


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




Mario Charest
 


Return to qnx.development_tools

Who is online

Users browsing this forum: No registered users and 1 guest