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

C support #1

Open
riptl opened this issue Mar 13, 2022 · 7 comments
Open

C support #1

riptl opened this issue Mar 13, 2022 · 7 comments

Comments

@riptl
Copy link

riptl commented Mar 13, 2022

It would be good to add support for the Solana C SDK

@tlambertz
Copy link
Contributor

Agreed. Should be fairly simple to do. Out of interest, are you aware of any larger contracts except for Pyth that are written in C?
It seems of the currently ~2.5k deployed contracts, only 64 are written in C. (found via ELF contains llvm-project.git)

@riptl
Copy link
Author

riptl commented Mar 30, 2022

I am not aware of any other C contracts. Pyth is the only smart contract I've seriously worked with, so my view is very limited.

@mryalamanchi
Copy link

It should be possible using the attribute((section(".security.txt"))) to acheive that at code level it self!

@mryalamanchi
Copy link

mryalamanchi commented Apr 13, 2022

Agreed. Should be fairly simple to do. Out of interest, are you aware of any larger contracts except for Pyth that are written in C? It seems of the currently ~2.5k deployed contracts, only 64 are written in C. (found via ELF contains llvm-project.git)

Primary choice still remains rust till date, except pyth ofcourse!

@MrG9090
Copy link

MrG9090 commented Jun 6, 2024

Agreed. Should be fairly simple to do. Out of interest, are you aware of any larger contracts except for Pyth that are written in C? It seems of the currently ~2.5k deployed contracts, only 64 are written in C. (found via ELF contains llvm-project.git)

#1 (comment)

@MrG9090
Copy link

MrG9090 commented Jun 6, 2024

B

@JanKortes212
Copy link

hi

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

No branches or pull requests

7 participants
@mryalamanchi @riptl @tlambertz @MrG9090 @JanKortes212 and others