Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
Get HideMyAss! VPN, PC Mag's Top 10 VPNs of 2016 for 55% off for a Limited Time ×

Comment Re:Best support stories page (Score 5, Informative) 1177

There's a good reason why you want to be able to support more than 16,384 local variables in a C function. Some compilers for functional languages (say Scheme) can compile a whole Scheme module to a single C function. The idea is that Scheme features tail-calls optimization, so it allows you to implement some function calls as a C goto (which is very efficient).

Such machine-generated code can get quite big. It would really sucks to have a silly hard-fixed limit for the number of variables in a function.

Now I understand that in the case of the anecdote the programmer might really have had more than 16,384 variables in a function for hand-written code. That would be /very/ scary.

Slashdot Top Deals

Congratulations! You are the one-millionth user to log into our system. If there's anything special we can do for you, anything at all, don't hesitate to ask!

Working...