This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to compile C program for c6x-linux?

Hi, 

I have built the linux kernel and filesystem as "Linux-c6x_2.0_Release" describes. And write the nand.bin to NAND Flash(My target is EVMC6678L). All include the mcsdk-demo and syslink examples seems to be OK.

But I am not clear enough about how to compile my own C program? For example, a "helloworld" program.

In $LINUX_C6X_TOP_DIR/linux-c6x-project/hello, there is an example, but when I run ./mk after edit some variables, I get the "can't find lc" "can't find crt1.o" msgs. In both $LINUX_C6X_TOP_DIR/opt/gcc-c6x and $LINUX_C6X_TOP_DIR/sdk dirs, I don't find those libs of executable tool. 

Then, how could I compile the hello example successful?

By the way, what the difference of above two toolchains?(opt/gcc-c6x and sdk/bin)

Anyone could give me some help?

Thanks.