Re:Cello – High Level C
by kaba0 on Saturday March 05, 2022 @03:33AM
(#30565625)
Go is a high level language, it doesn’t share any quality with C, other than perhaps bad expressiveness.
[ Parent
| on HN ]
"C Is Not a Low-level Language Your computer is not a fast PDP-11."
Re:Cello – High Level C
by badsectoracula on Saturday March 05, 2022 @05:45AM
(#30566292)
That article completely misses the point - assembly (or machine code) might not be how the "metal" works on a modern desktop(-like) CPU, but that is irrelevant when that is the lowest level that said CPUs are exposing. On such CPUs C is at the lower levels possible.
But also C isn't just for Intel, x86 and (some) ARM CPUs, there are other targets it has.
Nothing of that is exclusive to C, please provide an example of a CPU where C is the only compiler toolchain available, and exposes CPU capabilities without using language extensions.
Any example with language extensions to ISO C, allows me to provide a counter example with language extensions.
Any example where only a subset of ISO C is allowed, allows me to provide a counter example with a language subset.
Re:Cello – High Level C
by badsectoracula on Sunday March 06, 2022 @09:44AM
(#30577859)
Are you replying to the correct comment? I never claimed anything that would be exclusive to C. What i wrote applies equally to something like, e.g., most Pascal dialects that are around the same "level" as C.
This leaves room for such interpretation "On such CPUs C is at the lower levels possible.".
Sorry if I misunderstood it.
But many microcontrollers are and their toolchains do treat it as such.
Just like other programming languages, C is not a special snowflake.
https://www.f-secure.com/en/consulting/foundry
https://developer.arm.com/solutions/internet-of-things/langu...