7 ms·
Yes, but that could have been addressed by making them optional for freestanding implementations but mandatory for hosted implementations. Are there any hosted
by _kst_ 11y ago
Yes, but that could have been addressed by making them optional for freestanding implementations but mandatory for hosted implementations.
Are there any hosted systems (systems that can support the standard library) on which VLAs are difficult to implement?
- PeCaN 11y agoNot as far as I'm aware. POWER, x86(_64), even Itanium all just bump a stack pointer[1]. SPARC has a funky stack, but I don't know enough about it to say how hard VLAs would be. (It's a darn cool architecture though. I wish acquiring a modern SPARC processor wasn't ridiculously expensive.) The thing that makes VLAs hard to implement is that on some embedded and special purpose processors the stack is actually a physical, fixed-size location on the chip. I recall, but can't seem to find, some architecture that didn't use an explicit stack pointer. 1. Itanium has 2, but for purposes of VLAs it may as well have a conventional stack.