Re:Teaching C
by RodgerTheGreat on Tuesday May 10, 2016 @05:31PM
(#11670826)
With modern compilers and modern CPUs, C isn't a particularly thin abstraction. Many serious misconceptions stem from naive assumptions about how C will be translated into assembly which are invalidated through compiler code transformations- often with results that surprise even expert compiler maintainers. Please do not spread the idea that C has any straightforward or predictable relationship with assembly language.
[ Parent
| on HN ]
"more straightforward and more predictable relationship with assembly language than any other language in the world" is the right way to say it.
Re:Teaching C
by RodgerTheGreat on Tuesday May 10, 2016 @08:17PM
(#11671742)
That's a rather bold assertion. How would you back it up? What about high-level assembly languages, ISA-agnostic IRs or languages like Forth or Oberon for which compilers intentionally perform only simple optimizations, if any?