On 17 August 2012 06:52, Sean Bartell <[email protected]> wrote:
>
> I've now checked, and it needs an unreasonable stack size: 200K for
> initrd.img and far more for FAT filesystems with larger files. The
> problem is that the script itself uses recursion to follow the FAT
> entries for each file. A proper fix would require new features, but I
> will implement a workaround for this particular case where only the
> first part of the data is printed.
>

Every recursion can be transformed into iteration. That holds for
language interpreters interpreting recursive programs as well; there
is nothing inherently recursive in interpreting recursion. The worst
case is that you'd need to store state in your own dynamic stack.

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to