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 > [email protected] > https://lists.genode.org/listinfo/users > _______________________________________________ Genode users mailing list [email protected] https://lists.genode.org/listinfo/users
