S
sandeep
Good day,
We know that C was originally designed as a highlevel language to
abstract the opcodes of the PDP11.
For example, a command like
*t++ = *s++;
which would take many lines in other languages, in C is a single command,
because it is a single opcode on the PDP11.
Since then, hardware has changed A LOT! But C has hardly changed at all!
I would like to see C develop by adding new language features to match
modern CPU instructions. For example, there could be __packed_int,
__packed_float etc types to let programmers access SSE instructions. Just
like C has bitfields because that was what was going down in hardware
when K&R were active.
Otherwise, over time, C will become further and further removed from the
underlying hardware - and closeness to the hardware is C's main selling
point!
We know that C was originally designed as a highlevel language to
abstract the opcodes of the PDP11.
For example, a command like
*t++ = *s++;
which would take many lines in other languages, in C is a single command,
because it is a single opcode on the PDP11.
Since then, hardware has changed A LOT! But C has hardly changed at all!
I would like to see C develop by adding new language features to match
modern CPU instructions. For example, there could be __packed_int,
__packed_float etc types to let programmers access SSE instructions. Just
like C has bitfields because that was what was going down in hardware
when K&R were active.
Otherwise, over time, C will become further and further removed from the
underlying hardware - and closeness to the hardware is C's main selling
point!