close
Add codes below (in red color) to '~/.bashrc'
CELL_TOP='/opt/cell/sdk'
export CELL_TOP
alias spuTiming='/opt/cell/sdk/usr/bin/spu_timing'
alias spugccs='spu-gcc -S'
Reference Makefile:
all: <spu_executable> <ppu_executable>
<ppu_executable>: <ppu_executable>.c
gcc -Wall -maltivec -lspe2 <ppu_executable>.c -o <ppu_executable>
<spu_executable>: <spu_executable>.c
spu-gcc -Wall <spu_executable>.c -o <spu_executable>
clean:
rm -f <ppu_executable> <spu_executable> *.s *.s.timing
全站熱搜
留言列表