On Mon, 2006-10-30 at 20:18 +1100, Jonathan Kelly wrote: > > $ flx avl/array.flx > avl/array.cpp: In member function `flxusr::array::_poly_1972t_6882 > flxusr::array::find::apply(const flxusr::array::_tt6885&)': > avl/array.cpp:2096: error: `ptf' undeclared (first use this function) > avl/array.cpp:2096: error: (Each undeclared identifier is reported only > once for each function it appears in.) > > plain text document attachment (array.flx)
The bug is somewhere in flx_global.ipk or flx_mkclosure.ipk, which tracks whether the ptf (pointer to thread frame) has to be passed to the function. Avl::find passes it to one of its subroutines, but it isn't passed in to it. However, looking at the generated C++ there is a much more serious problem: there are a lot of small subroutine which SHOULD have been inlined but weren't. That code is not only bloated, it's going to go as slow as a wet week. My suspicion is that this is because all these routines are recursive, and Felix can't inline all recursive routines or it would lead to an infinite unfolding. However it should inline ALL routines which are anonymous and all children: the rule is that you can't inline parents or siblings which call you back. [This constraint is too strong.. but that's another story] -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
