General > General Technical Chat
C language 50th anniversary
Picuino:
One of the advantages of the existence of C is that many microprocessor designers have taken into account that C was the de facto standard language, for designing their cores.
Perhaps the most notable exception is the 8-bit PIC cores, which seem to be designed so that no one, except Microchip, wants to make a decent C compiler for them.
tom66:
--- Quote from: Picuino on July 26, 2022, 02:41:38 pm ---One of the advantages of the existence of C is that many microprocessor designers have taken into account that C was the de facto standard language, for designing their cores.
Perhaps the most notable exception is the 8-bit PIC cores, which seem to be designed so that no one, except Microchip, wants to make a decent C compiler for them.
--- End quote ---
Yes, the PIC18 with its bizarre file-pointer registers that increment themselves when you read from them. It's a fun, and *horrid*, architecture.
Kjelt:
--- Quote from: Picuino on July 26, 2022, 02:41:38 pm ---One of the advantages of the existence of C is that many microprocessor designers have taken into account that C was the de facto standard language, for designing their cores.
--- End quote ---
Interesting statement, so you are saying that the opcodes of the microcontroller were designed for C ?
I don't get that. Can you give an example of what you mean with this?
Because simple example C does not have a carry (bit) with multiplications, however no microcontroller manufacturer would be so stupid to drop the carry bit in the registers ;)
emece67:
.
Kjelt:
--- Quote from: emece67 on July 26, 2022, 05:33:05 pm ---RISC-V does not have carry bit. Neither Zero, oVerflow nor Sign.
--- End quote ---
That is indeed a very Reduced Instruction Set :)
But I think they did not drop it because of the c-compiler? ::)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version