Make stack size computation more robust in patmos multi-core