How to compile C code directly on the SOM's command prompt?

Enable the GCC compiler by selecting/adding the ‘packagegroup-core-buildessential’ in Petalinux config rootfs or in Yocto recipe file and create the binaries.

Boot the board with GCC enalbed binaries and in Kernel command line run the below command to compile an application.
gcc <path-to-C file>/filename.c -o <patch-to-out-file>

Execute the application using below command.

/<path-to-out-file>/file-name.out

For further inquiries, please get in touch with mktg@iwave-global.com

Please find the detailed G35D product information in the below link,