Hi,

When you link against libc there is a filter mechanism that provides platform specific versions of key libc routines, like mem*. These routines are located in libc_psr. So if you call libc, you don't need to worry about using platform specific optimised versions of key routines, it happens automatically.

If you want to confirm this, profile your app using the performance analyzer and look at the code that is used for the mem* routines.

Regards,

Darryl.


On 03/30/10 00:34, jf simon wrote:
Hi,

Bart Smaalders wrote:
The libc mem* routines already use VIS instructions to good effect on
SPARC platforms, and platform teams regularly enhance these functions
for both existing and new hardware.


i want to use these VIS enhanced mem* functions on a Niagara T2
system.  do i need to specify specific options for sun studio in
CFLAGS? like "-sparcvis" ? or is it just a matter of linking with
the right libc?
in short how to be sure i am indeed using VIS?

thx a lot
-jfs

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

--
Darryl Gove
Compiler Performance Engineering
Blog : http://blogs.sun.com/d/
Books: http://www.sun.com/books/catalog/solaris_app_programming.xml
       http://my.safaribooksonline.com/0595352510
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to