[Cython] Temps in CCodewriter

Stefan Behnel stefan_ml at behnel.de
Wed Jul 30 13:01:14 CEST 2008


Hi Dag,

Dag Sverre Seljebotn wrote:
> OK, temps in CCodeWriter is now available in -dagss. (As for status, it
> was Greg's idea, Robert seemed to approve and I haven't heard anything
> from Stefan on it but he hasn't opposed it either.)

I never really managed to understand the details of temp allocation, and I
was always happy to get code working that required them. So I'm totally +1
for getting this simplified. And (as Robert said already), moving temp
allocations into the code generation phase makes perfect sense to me.

I assume that this also uses your code insertion modification to insert
temp declarations at the top of the function code?

Is there actually any support for block-local temps? I know, this is
non-trivial as it impacts exception handling (e.g. duplicated error lables
with and without temp cleanup), but it would make sense e.g. for nogil
functions.

Stefan



More information about the Cython-dev mailing list