Hi - I'm trying to pass a tuple by pointer to an extern function. The current guidance for arrays is to declare the extern function to take in a ref argument and then to pass in by-ref A[1]. Doing the same thing for tuples sometimes passes stack trash.
(I think something about the tuple copy optimization is causing this problem but I am not sure. The generated code ends up creating a copy of just the first tuple element and then passing a pointer to that, instead of declaring the full tuple on the stack). See test case/bug report in test/users/ferguson/tuple_to_extern.chpl Thanks, -michael ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Chapel-bugs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/chapel-bugs
