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'

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

 

arrow
arrow
    全站熱搜

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