Re: Has anyone used CLANG yet?

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Chris Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Has anyone used CLANG yet?
Date: 2009-12-09 21:59:01
Message-ID: 4B201DA5.7020408@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Chris Browne wrote:
> I suspect there's something about PASCAL that's a problem, as clang is
> nominally supposed to be a C compiler ;-).
>
"Pascal" refers to a way of different way of pushing things onto the
stack when calling things; there's "Pascal order" and "c order" when you
call a function, each approach has its good and bad sides. There's work
in progress to support different calling conventions including Pascal
order for LLVM at
http://nondot.org/sabre/LLVMNotes/CustomCallingConventions.txt . At
this point, supporting different call conventions is supported in LLVM
1.5: http://llvm.org/releases/1.5/docs/LangRef.html#callingconv but it
doesn't look like the syntax to support the Pascal one has made it in
there yet. Probably requires a fairly small patch to LLVM now that the
main infrastructure is available.

Don't know if it's feasible to rip all the Pascal convention code out
PostgreSQL, that's the other approach.

--
Greg Smith 2ndQuadrant Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message A.M. 2009-12-09 22:17:14 Re: Has anyone used CLANG yet?
Previous Message Chris Browne 2009-12-09 21:23:05 Has anyone used CLANG yet?