openasip icon indicating copy to clipboard operation
openasip copied to clipboard

[tcecc] C++11 support?

Open alekob opened this issue 5 years ago • 4 comments

Hi, I'd like to compile C++11 code on a TTA system, stdc++ lib is necessary. As the installation procedure in TCE for LLVM differs from the "getting started" page (https://llvm.org/docs/GettingStarted.html), I'd like to ask how to install libcxx and libcxxabi to work with tcecc?

alekob avatar Mar 21 '19 20:03 alekob

I don't think this has been tried by anyone yet. While I think most c++11 language features should just work, no one has ported a C++ standard library so far. Our group has focused on C and OpenCL C. It would be great if someone ported it though!

pjaaskel avatar Mar 22 '19 08:03 pjaaskel

Tried to extend the installation script for LLVM 8.0 to compile libc++, libc++abi. The build process seems to work, but the compilation of the project's C++ code results in several errors:

/home/alex/apps/LLVM/8.0/include/c++/v1/__config:63:4: error: Unknown object file format

error Unknown object file format

^ /home/alex/apps/LLVM/8.0/include/c++/v1/__config:1172:6: error: "No thread API"

error "No thread API"

... /home/alex/apps/LLVM/8.0/include/c++/v1/atomic:1855:16: error: use of undeclared identifier 'int_least64_t' typedef atomic<int_least64_t> atomic_int_least64_t; ...

alekob avatar Mar 26 '19 22:03 alekob

TCE does not yet support 64-bit simple data types. This is the reason the int_least64_t is not supported.

hkultala avatar Aug 05 '19 12:08 hkultala

How about the version on branch "64bit"? Does it support simple 64 bit types or is there a way for a "software emulation" like "-swfp"?

alekob avatar Aug 07 '19 11:08 alekob