I am using SPE initiated DMA to pull across arguments. I have a structure that holds my arguments. DMA works fine with the identical struct defined in both the SPE and PPE code, but the redundancy bothers me.
Is there a simple way (must be) to have a single header file and use it in my SPE and PPE code?
I have two projects: PPE and SPE. Where would I put the header file containing my struct and what would the includes be on the SPE and PPE sides?
Thanks,
-Ken
Share header for DMA?
Yes, you can use single C/C++ header for both projects.
Assume your workfolders are:
ppe_project
spe_project
common_headers
Just put the line #include "../common_headers/structs.h" in your code.
For example, http://spu-cell-rasterizer.googlecode.c ... /structs.h in http://spu-cell-rasterizer.googlecode.com/svn/trunk/
Assume your workfolders are:
ppe_project
spe_project
common_headers
Just put the line #include "../common_headers/structs.h" in your code.
For example, http://spu-cell-rasterizer.googlecode.c ... /structs.h in http://spu-cell-rasterizer.googlecode.com/svn/trunk/