Storage-Class Specifiers

Storage-class specifier typedef is supported. Using extern or static keywords for linkage visibility control is supported, although it has no practical use, since TPC C compiler supports only single module compilation. Using static for scoped variable life control is supported. Using the register specifier is acceptable but has no effect in practice.


The storage-class specifier auto is supported in TPC C++ but not available in TPC-C.


typedef float FLOAT; // allowed

extern int e; // allowed

int e; // actual definition exists

void main(const tensor src, tensor dst)


register int5 coords; // allowed, no effect


int64 sum = 0;

for (...)


   static int i; // allowed


   auto e = coords[0]; // allowed, if TPC C++

   sum += i;