Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Vikram Kalsi <vikramkalsi(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2
Date: 2005-03-09 04:30:54
Message-ID: 200503090430.j294Usn10666@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Vikram Kalsi wrote:
> The _InterlockedExchange() function is defined in ia64intrin.h header file
>
> int _InterlockedExchange(volatile int *Target, long value)
> Do an exchange operation atomically. Maps to the xchg4 instruction.
>
> More information is available at
> http://www.intel.com/software/products/compilers/clin/docs/ug_cpp/lin1072.htm
>
> Also, some other points to note, _ICC wasn't defined on my
> installation when I was using icc by setting env var CC=icc. So, when
> I tried to put a "#if defined" for using asm() for gcc and
> _InterlockedExchange(), it didn't work. So, after this change gcc
> compilation fails.

Oh, I see _InterlockedExchange is inlined assembler. Let me work on a
patch and post it to you.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Qingqing Zhou 2005-03-09 04:41:51 two questions related to tablespace in PG8.0.1
Previous Message Bruce Momjian 2005-03-09 04:29:47 Re: postgreSQL-8.0.1 compilation with icc-8.1 on Itanium-2