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'

R
eference 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

 

創作者介紹
創作者 forteallan 的頭像
forteallan

Ching's blog

forteallan 發表在 痞客邦 留言(2) 人氣()