News for hackers. Stuff that matters.
Re:Some obscure C features by flavio81 on Thursday January 25, 2018 @07:33PM (#16236114)
>Sometimes you just don't have other options than C. Like kernel drivers, embedded (microcontroller) development

Use Common Lisp to generate C code. There are three libs that are specific for this, see C-mera for example.

Re:Some obscure C features by pjmlp on Friday January 26, 2018 @04:33AM (#16237946)
That is how the .NET GC was originally implemented.
Re:Some obscure C features by hedora on Thursday January 25, 2018 @10:55PM (#16236934)
Wait. If I use non-tail recursion on a micro controller, then I’ve probably implemented a stack out of memory crash, which, for embedded devices, is actually worse than a buffer overflow on unsanitized input.

Is this a joke, or do they do some sort of stack-bounding static analysis?

Re:Some obscure C features by sedachv on Friday January 26, 2018 @04:22AM (#16237910)
What are you talking about? Running out of stack has nothing to do with what you use for code generation/preprocessing. I also don't see why running out of stack would ever be worse than a buffer overflow. The former is at least going to be fail-fast.