samedi 15 juillet 2017

C++11/C++14 on exotic hardware

There was a question like this before, in 2011: Exotic architectures the standards committees care about

Now, I'd like to ask a very similar question, but this time, I'm asking it from the programmer's view of perspective, and in the perspective of C++11/C++14.

Which hardwares exist currently, which has a C++11/C++14 compiler for it, and can be considered exotic? Where are these hardwares used? Approximately, how many machines exist with these hardwares (I mean just the order of magnitude, so one can estimate its importance)?

What do I consider exotic:

  • where a char is not 8 bit
  • where IEEE 754 float number format not available
  • where the integer numbers aren't encoded in two complement
  • where there is no 8, 16 or 32 bit types supported by the compiler
  • where the memory model is not linear

So anything, which is not the standard, which we see on x86/ARM world, where we have:

  • have 8/16/32-bit two complement integers
  • IEEE754 floats, some fully compliant, some don't, but use the IEEE754 format
  • linear memory model

I'm asking this, because a lot of times, I get answers like "you cannot depend on that, it is implementation defined", and I'd like to know, that actually, in the real world, how much I can depend on the standard.

If the answers will be useful, we can create a document from them.

Aucun commentaire:

Enregistrer un commentaire