Liste des Groupes | Revenir à cl c |
On 23/03/2024 12:26, bart wrote:Well, Forth is certainly cruder than C (it's barely a language IMO). But I don't remember seeing anything in it resembling a type system that corresponds to the 'i8-i64 u8-u64 f32-f64' types typical in current hardware. (Imagine trying to create a precisely laid out struct.)On 23/03/2024 07:26, James Kuyper wrote:How much of a problem is it, really?bart <bc@freeuk.com> writes:>On 22/03/2024 17:14, James Kuyper wrote:[...]>If you want to tell a system not only what a program must do, but>
also how it must do it, you need to use a lower-level language than
C.
Which one?
That's up to you. The point is, C is NOT that language.
I'm asking which /mainstream/ HLL is lower level than C. So specifically ruling out assembly.
>
If there is no such choice, then this is the problem: it has to be C or nothing.
My field is probably the place where low level programming is most ubiquitous. There are plenty of people who use assembly - for good reasons or for bad (or for reasons that some people think are good, other people think are bad). C is the most common choice.
Other languages used for small systems embedded programming include C++, Ada, Forth, BASIC, Pascal, Lua, and Micropython. Forth is the only one that could be argued as lower-level or more "directly translated" than C.
Les messages affichés proviennent d'usenet.