Shared C++ backend.