Michael Stoll on Tue, 21 Apr 1998 11:20:06 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Memory management


Coming back to my latest patch of gtrunc() -- I'm not sure about
the following two points.

(1) Should the result of a function always be in a contiguous piece
    of stack memory ?
    (If not, we could simply use  y[1] = x[4]  instead of lcopy((GEN)x[4]).)
(2) Should the result always be left on top of the stack ?
    (If yes, we would have to return gcopy((GEN)x[4]) instead of
    simply (GEN)x[4].)

Maybe one of the experts could drop a hint.

Thanks,
        Michael