openenclave / openenclave

SDK for developing enclaves
https://openenclave.io/sdk/
MIT License
1.07k stars 357 forks source link

C++ std::cout in OP-TEE OS #4414

Open XiangyiXuWashU opened 2 years ago

XiangyiXuWashU commented 2 years ago

I try to use libc++/libc++abi/libunwind in OP-TEE, which is mentioned here https://github.com/OP-TEE/optee_os/pull/3693. Most C++ standard library could work, except of std::cout. I guest std::cout is also a complicated system call which is not implemented in OP-TEE. I am wondering whether the OE support std::cout in OP-TEE OS. I would like to refer that. Thanks!

llvm: libcxx\include\ostream template <class _CharT, class _Traits> basic_ostream<_CharT, _Traits>::sentry::sentry(basic_ostream<_CharT, Traits>& os) : ok(false), _os(os) { if (os.good()) ==========================> crash here!!!!!! { if (os.tie()) os.tie()->flush(); _ok = true; } }

Cheikhabbas44 commented 2 years ago

Very good