Hello Genodians,
I want to run a C - Program on Genode over virt_qemu_riscv. I think Java support is not there for riscv. So I want to go with C. Kindly guide me on this. Also enlighten about the compilation.
Regards Pranab
Hello Genodians,
I want to run a C - Program on Genode over virt_qemu_riscv. I think Java support is not there for riscv. So I want to go with C.
Kindly guide me on this. Also enlighten about the compilation.
Regards
Pranab
_______________________________________________
If you're creating a new program rather than port an existing one,
- you could go with the "hello world" tutorial and expand from there (see repos/hello/doc/ for the directions :
basically once your build environment is setup you run "make -C ..... run/hello.." to compile and run the program)
- alternatively, you'll want to use Goa (see genodians.org's article series from Norman Feske) especially if your program will use the LibC (POSIX API).
Cédric
This is a simple example for a (non-ported) C program in Genode:
! repos/libports/src/test/tcp
Add your *.c files to SRC_C in target.mk:
! SRC_C += main.c
If you want to run on posix/libc like the example program, add also:
! LIBS += posix libc
However, if _not_ (say a native Genode program) you might want to access Genode interfaces via Genodes C-API lib (not yet feature complete though, AFAICT):
! repos/os/src/lib/genode_c_api ! repos/os/include/genode_c_api
Cheers, Martin
On 14.04.23 07:09, Pranab Kumar Rout cs21m045 wrote:
Hello Genodians,
I want to run a C - Program on Genode over virt_qemu_riscv. I think Java support is not there for riscv. So I want to go with C. Kindly guide me on this. Also enlighten about the compilation.
Regards Pranab
Genode users mailing list users@lists.genode.org https://lists.genode.org/listinfo/users