5 ms·
There are many many people out there using C for embedded software.
by jonp888 5y ago
There are many many people out there using C for embedded software.
- sam_bristow 5y agoThe problem is that embedded compilers are not known for keeping up with the standards. The only hope is that the moves to GCC and Clang continue.
- pkrumins 5y agoNo one cares about the standards. We only care about getting things done by writing regular C code that works.
- uncomputation 5y agoHuh? What do you think defines “regular C code that works”? Standards. Every compiler you have used operates at a bare minimum on the C standard. That’s why they are often advertised (if not GCC/Clang which are assumed to be up to date) as “C(89|99|11|17) compliant.” “Code that works” is code which is operates under constraints and guarantees specified by a standard, anything else is undefined or unportable.
- flyinglizard 5y agoEmbedded environments are specific and esoteric enough that compiler portability is the least of your concern when migrating code from one platform to the other.
- pkrumins 5y agoOnly the standards people care about standards. We (programmers) want to just get things done. We don't care about the standards. No one reads the standards. Also no one cares about portability. All computers have been the same for the last 20 years.
- drran 5y agoWe, developers, care about standards, because we want to get things done once.
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- pjmlp 5y agoRight, then comes the day another OS or CPU needs to be supported and some clever developers learn their lesson about language standards during a couple of late nights tracking down production issues.
- xigoi 5y agoI'll rather have code that runs on an actual computer than code that should hypothetically run according to a long document that costs 60 dollars to read.
- pkrumins 5y agoExactly. You get it 100%. We should work together.
- bsder 5y agogcc (thankfully) is the default (you download gcc compiled for ARM directly from ARM itself) for ARM embedded so when gcc gets it, ARM gets it. So, presumably, RISC-V will also get it at the same time.
- mkl95 5y agoThere are tons of CPython users AKA Python's default implementation... the software world is full of high level abstractions built on top of C.