Skip to content

Support C99 target #380

@xcpky

Description

@xcpky

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:

  1. 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?

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions