Use TinyCC to write C programs in the (milkv-duo) development board for debugging

TinyCC Debugging Tool - TinyCC   Extract code: 9255

1. Uploading to the development board system installation through SSH

scp ./ root@

2. Installing TinyCC

ssh root@

cd ~/


cd milkv-duo-tinycc


cd ..

3. Writing and uploading a test program

Save the following code to a local test.c file

#!/usr/local/bin/tcc -run

#include <stdio.h> int main(int argc, char **argv) { printf("%s---\n", "hello milk-v!"); return 0; } scp ./test.c root@

4. Compiling and running the test program

cd ~/ tcc -o test test.c ./test

5. Interpreting and executing the test program

tcc -run test.c

6. Executing the test program script

chmod +x test.c ./test.c

7. Attaching the test program package

scp ./ root@

cd ~/


cd ./tcc-examples


Note that this version needs to be executed on a musl-compiled kernel

1 Like