On Sun, Nov 22, 2009 at 11:04 AM, Andreas Fritiofson <andreas.fritiof...@gmail.com> wrote: > On Sun, Nov 22, 2009 at 9:51 AM, Øyvind Harboe <oyvind.har...@zylin.com> > wrote: >> Do not use variable length arrays. Use malloc(). >> >> If you use variable length arrays on the stack that messes with embedded >> / uCLinux hosts. >> > > Only if the embedded host uses a home directory path longer than what > will fit on the stack. Is this really a problem?
Yes. Other programmers will copy and paste your code. We've got the code clean of dynamic arrays on the stack and we should keep it that way. -- Øyvind Harboe http://www.zylin.com/zy1000.html ARM7 ARM9 ARM11 XScale Cortex JTAG debugger and flash programmer _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development