On Tue, Mar 12, 2013 at 7:22 PM, Simon Glass <s...@google.com> wrote:
> Hi,
>
> Given that we seem to allow C99 features in U-Boot I wonder if it
> would be OK to use dynamic arrays in SPL?
>
> I am trying to replace:
>
> ptr = malloc(size);
>
> with:
>
> char ptr[size];
>
> to avoid use of malloc in SPL. Can I assume that is permitted?

Without knowing the underlying mechanics of how that works, "maybe".
And we already have malloc in SPL thanks to FAT support.

-- 
Tom
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to