-
-
Notifications
You must be signed in to change notification settings - Fork 37
Description
First of all, thank you for your work! A transpiler for C is of great value IMO.
I think it's better if we can support C99 in addition to C89 as another target for the following reasons:
-
C99 has feature that is not easy/possible to implement in C89(at least fully conforming C89). For example, VLA, FLA(Flexible array member), restrict... But, C2Y -> C99 is easy for all features(correct me if I am wrong).
Yes we have compiler extension for c89 so that some of C99 features are directly supported. But I think that typically means the compiler itself supports C99 already. And if we add those extension like
__restrict__to C89 mode as I suggested in Support __restrict__ in target output #379 , what about other compiler that only supports C89? -
C99 is widely supported and widely used, I would say any sane platform supports C99. And i think 99% of the time, we are dealing with those platform.