[zeromq-dev] Development topics

Martin Sustrik sustrik at 250bpm.com
Fri Feb 12 13:01:40 CET 2010


Vitaly,

>> diff --git a/configure.in b/configure.in
>> index d9da679..9327aab 100644
>> --- a/configure.in
>> +++ b/configure.in
>> @@ -156,6 +156,21 @@ if test "x$sparc" = "xyes"; then
>>      CPPFLAGS="$CPPFLAGS -mcpu=v9"
>>  fi
>>
>> +# Check if we have rdtsc
>> +AC_MSG_CHECKING([wheter rdtsc is is supported])
>> +AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
>> +    [],
>> +    [[
>> +        __asm__ volatile ("rdtsc");
>> +    ]])],
>> +        [rdtsc=yes],
>> +        [rdtsc=no])
> 
> What's the point of this check? It is entirely x86-specific and is
> supported since first Pentiums.

I believe this is because of OpenPGM uses different time measurment 
approaches, based on the platform. This check is meant to find out 
whether RDTSC is available and if so, compile OpenPGM with RDTSC option on.

Martin



More information about the zeromq-dev mailing list