On 03/10/2007, Eli Zaretskii <[EMAIL PROTECTED]> wrote:
> > From: Paul Smith <[EMAIL PROTECTED]>
> > Cc: Yongwei Wu <[EMAIL PROTECTED]>, make-w32@gnu.org
> > Date: Tue, 02 Oct 2007 21:39:04 -0400
> >
> > On Tue, 2007-10-02 at 17:26 +0200, Eli Zaretskii wrote:
> > > What advantage is there in using alloca?
> >
> > So, alloca() is nice because it's dynamic.
>
> But it could get you in trouble if the file name in question is very
> long, since the stack is limited.

char array[MAX] also allocates on the stack.  So alloca is better,
since it should allocate less.

Best regards,

Yongwei

-- 
Wu Yongwei
URL: http://wyw.dcweb.cn/


_______________________________________________
Make-w32 mailing list
Make-w32@gnu.org
http://lists.gnu.org/mailman/listinfo/make-w32

Reply via email to