<div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Man page seems to be discouraging it, which is fair enough if its got<br>
variant behaviour depending on the underlying architecture.<br>
</blockquote>
<br></div>
Well the main reason for avoiding stack allocation is that it's so easy to run out of space on the stack.<br></blockquote><div><br>Trade off on "automatic" garbage collection - there's a cost somewhere...<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I have to say, the function sounds like a steaming pile of crap!<br>
<br>
"The inlined code often consists of a single instruction adjusting the stack pointer, and does not check for stack overflow."<br>
<br>
I'm learning more about C, and the more I learn the more I'm convinced that C programmers just like making life difficult for themselves. There really isn't anything that great about C. It's full of bugs and hacks, and it is really showing its age. I can't imagine recommending the language to anyone. </blockquote>
<div><br>Never going to argue with that, unless they are doing Unix development. I bite though - what _would_ you recommend?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Although, there is something mystical (and powerful) about it.</blockquote><div><br>I think its aged remarkably well - what hasn't aged well is more the bits at the edge (APIs etc) and some of the assumptions about how it'd be used. It dates back to a time where the competition was assembler, not high level languages. Its also interesting to note the amount of C that isn't actually in C as such - the compiler directives.<br>
<br></div></div>