Menu ▾ ▴

#75 Create Linux port of the SPL compiler + stdlib

1.0
open
None
7
2018-06-12
2018-06-03
No

SPL compiler shall allow native Linux development. Initially 32-bit, then add 64-bit.

Discussion

  • Andrei Kapustin

    Andrei Kapustin - 2018-06-03

    C++ backend generates []-style flexible arrays for SPL free array data types. Unlike MSVC, GCC will not compile:

    struct GeneratedFreeArrayType
    {
    ArrayElementType data[];
    };

    However, CGG will compile:

    struct GeneratedFreeArrayType
    {
    ArrayElementType data[0];
    };

    ...after which sizeof(GeneratedFreeArrayType) is, correctly, 0.
    So, the GCC code generator should use the [0] idion for SPL free arrays - and check whether this can be used by MSVC code generator as well.

     
  • Andrei Kapustin

    Andrei Kapustin - 2018-06-12
    • assigned_to: Andrei Kapustin