Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide standard C++ library binaries in SBF tools #21930

Open
dmakarov opened this issue Dec 15, 2021 · 4 comments
Open

Provide standard C++ library binaries in SBF tools #21930

dmakarov opened this issue Dec 15, 2021 · 4 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dmakarov
Copy link
Contributor

Problem

SBF C++ toolchain doesn't include a standard C++ library for on-chain developers to use. This severely limits the development of on-chain programs in C++.

Proposed Solution

Provide a restricted version of C++ STL library that doesn't contain global variables. Include the library binary and header files in SBF tools distribution package.

@OluAgunloye
Copy link

OluAgunloye commented Mar 22, 2022

Hello. Any updates on this? @dmakarov

@dmakarov
Copy link
Contributor Author

This is placed on hold for now.

@OluAgunloye
Copy link

Are there any specific issues or blockers that I (and my team) can be of assistance for? We're particularly interested in getting this feature-set up and running. @dmakarov

@dmakarov
Copy link
Contributor Author

C++ STL library in general relies on global static variables. The Solana run-time is based on BPF virtual machine which doesn't allow programs to use non-readonly global data. This makes it unfeasible to compile a C++ STL to BPF with the goal of linking it to executable on-chain programs. Such programs won't run on our VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants