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

Run c/c++ compiled files and package manager #256

Open
Stargate256 opened this issue Dec 10, 2022 · 12 comments
Open

Run c/c++ compiled files and package manager #256

Stargate256 opened this issue Dec 10, 2022 · 12 comments
Labels
enhancement New feature or request

Comments

@Stargate256
Copy link

Hi, i think it'd be cool if oc2 computers could run c++ aplications and havning a package manager to install things like gcc.

@Stargate256 Stargate256 added the enhancement New feature or request label Dec 10, 2022
@atirut-w
Copy link

There are no plan for PM AFAIK but you can cross compile programs for RISC-V and transfer them in

@radyshenkya
Copy link

OC2 computers already can run any binaries that were compiled for RISC-V architecture (You can check this website for musl toolchain, if you want to build programs on C/C++).

@Un1q32
Copy link

Un1q32 commented Feb 26, 2023

a package manager would require real internet, which isnt implemented yet.

also gcc wouldn't fit into 8 MB

@atirut-w
Copy link

gcc wouldn't fit into 8 MB

how big is gcc again?

@Un1q32
Copy link

Un1q32 commented Feb 27, 2023

https://pkgs.alpinelinux.org/package/edge/main/riscv64/gcc

the alpine linux riscv64 gcc package (does not include g++ or support for any other languages besides C) is 70.89 MB

@Un1q32
Copy link

Un1q32 commented Feb 27, 2023

https://pkgs.alpinelinux.org/package/edge/main/riscv64/g++

adding g++ for C++ support would add an extra 20.55 MB

@spike11302000
Copy link

compiling will be very slow. if you really want to run c/c++ it will be best to just cross compile and transfer the files using the export/import card

@Un1q32
Copy link

Un1q32 commented Feb 27, 2023

it should be noted that the file import/export card corrupts data

@Un1q32
Copy link

Un1q32 commented Feb 27, 2023

its a bug, not intentional, someone made a python implementation that doesn't corrupt data but i dont think they released it, just mentioned that they did so its not the api, its the lua program

@spike11302000
Copy link

there is also the Coverett library which adds a program thats meant to replace the stock import/export lua program. the library also has binding for the hlapi for you can make c/c++ programs that can interact with peripherals

@Un1q32
Copy link

Un1q32 commented Feb 27, 2023

there is also the Coverett library which adds a program thats meant to replace the stock import/export lua program. the library also has binding for the hlapi for you can make c/c++ programs that can interact with peripherals

i heard that also corrupts data sometimes

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

5 participants