Re: Has anyone used CLANG yet?
От | Greg Smith |
---|---|
Тема | Re: Has anyone used CLANG yet? |
Дата | |
Msg-id | 4B201DA5.7020408@2ndquadrant.com обсуждение исходный текст |
Ответ на | Has anyone used CLANG yet? (Chris Browne <cbbrowne@acm.org>) |
Список | 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@2ndQuadrant.com www.2ndQuadrant.com
В списке pgsql-hackers по дате отправления: