Friday, April 10, 2009

Compiling code on SDK 3.1

spu-gcc spe_example.c -o spe_example
ppu-embedspu test_handle spe_example spe_example_csf.o
ppu-gcc ppe_example.c spe_example_csf.o -lspe2 -o ppe_example

the first command compiles the spe code,
the second command embeds the spe code into the ppe program (gives it the handles)
the third command compiles the code and links to executable

No comments:

Post a Comment