annotate example/README @ 115:d9ea79aac04f draft

fix Makefile
author gongo@charles.cr.ie.u-ryukyu.ac.jp
date Thu, 13 Nov 2008 10:46:36 +0900
parents 028ffc9c0375
children f5588c39fd7b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 /**
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 * 現在開発中なので、仕様やここに書いてる事も
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 * すごい頻度で変わる可能性があります。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
4 * なので、定期的に cvs update をしたり
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
5 * Game_project/Cerium/TaskManager/Changelog を見たり
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6 * http://www.cr.ie.u-ryukyu.ac.jp/~game/pukiwiki/ を見てください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7 */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
8
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
9 Cerium の例題っぽいのを置いてあります。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
10 ここにある書き方を参考に他にいろいろ作ってみてください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
11
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
12 例題の概要は、各ディレクトリの README に書いてあります。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
13 使用方法や実行例も同じです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
14
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
15 -----------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
16 最近の更新
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
17 -----------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
18
115
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
19 2008/11/13
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
20
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
21 Makefile.macosx において、
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
22 `sdl-config --libs` を追加してあります。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
23 例題の中で SDL を使うことはなくても書かれているのは、
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
24 ライブラリ側に main() を置いたためです。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
25
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
26 http://d.hatena.ne.jp/hiratara/20080719/1216481600
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
27
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
28 上を見てもらえばわかると思いますが、
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
29 SDL では、ユーザが描いた main を SDL_main に置き換え、
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
30 libSDL の中の main() を起動時のエントリに使ってます。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
31 なので、TaskManager/kernel/main.cc では #include <SDL.h> とか
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
32 やってますが、そのせいで、ユーザ側でも sdl-config --libs をしないと
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
33 「main() がないぞ」ってなリンカエラーが出るわけです。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
34 これは、MacOSX だけの問題で、Linux や PS3 上では問題ないので
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
35 Makefile.macosx だけに記述しています。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
36
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
37 なので、MacOSX 上で例題を動かす場合、一瞬 SDL のウインドウが
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
38 起動する系の動作をすると思いますが、無視してください。それ以外は動きますので。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
39
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
40 いずれはちゃんと切り分けたいところですが、今のところこんな感じで。
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
41
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
42
d9ea79aac04f fix Makefile
gongo@charles.cr.ie.u-ryukyu.ac.jp
parents: 109
diff changeset
43
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
44 2008/11/01
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
45
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
46 main 関数はライブラリに閉じました。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
47 というわけで、ユーザ側の main() は
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
48
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
49 int cerium_main(int argc, char *argv[]);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
50
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
51 となります。引数は通常の main と同じものが渡されます
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
52 cerium_main で ( < 0 ) を返す (例えば -1) と
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
53 プログラムが終了するようにしています。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
54 cerium_main を正常に抜けると、ライブラリ側で
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
55 main loop が回り、全タスク終了と共にプログラムが終了します。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
56
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
57 あと、Cerium の標準オプションとして
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
58
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
59 -chelp Print this message
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
60 -cpu Number of CPU (default 1)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
61
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
62 を実装しました。近々増やしていく予定です。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
63
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
64 TaskManager へのアクセスですが、今までは
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
65
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
66 TaskManager *manager = new TaskManager(CPU_NUM);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
67
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
68 とかやってたはずですが、現在はライブラリ側で生成しているので、
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
69 TaskManager.h を include すると、中で
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
70
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
71 extern TaskManager *manager;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
72
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
73 とかしてるので、そのまま manager->create_task とかして使えます。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
74
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
75
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
76
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
77 -----------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
78 修正場所
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
79 -----------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
80
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
81 今のところ、configure とかそういうのは無いので、
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
82 ライブラリのパスは手動で書き直さないといけないです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
83 各例題の Makefile.def ってところに、
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
84
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
85 TARGET = 例題の実行ファイル名
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
86 CERIUM = Cerium のパス
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
87
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
88 を書くところがあるので、自分の環境にあう感じで書いてください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
89
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
90 -----------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
91 コンパイル方法
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
92 -----------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
93 MacOSX
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
94 % make macosx
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
95
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
96 Linux
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
97 % make linux
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
98
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
99 PS3 (spe/ 以下もコンパイルされます)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
100 % make ps3
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
101
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
102
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
103 clean するときは普通に
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
104
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
105 % make clean でいいです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
106
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
107
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
108
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
109 --------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
110 プログラムの書き方
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
111 --------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
112
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
113 まだちゃんと仕様書みたいなものをは書いてないので、
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
114 ここで記述必須の所を書いておきます。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
115
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
116 1. タスクの作り方
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
117 2. タスクの登録 (ID との対応付け)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
118 3. 最後に
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
119
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
120 -------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
121 1. タスクの作り方
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
122 -------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
123
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
124 タスクは、一つのクラスとして扱います。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
125 クラスの宣言 (.h) はこんな感じです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
126
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
127 ++++++++++++++++++++++++++++++++++
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
128 #ifndef INCLUDED_SCHED_TASK
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
129 # include "SchedTask.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
130 #endif
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
131
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
132 class Hello : public SchedTask {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
133 public:
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
134 SchedConstructor(Hello);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
135
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
136 int run(void *r, void *w);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
137 };
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
138 ++++++++++++++++++++++++++++++++++
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
139
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
140 以上の記述は必須です。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
141 クラス名と、SchedConstructor() の中身は一緒にしてください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
142 run() がこのクラスの Task としての実装となります。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
143 クラス変数、関数を加えるのはOKです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
144
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
145
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
146 次に実装 (.cc) です。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
147
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
148 ++++++++++++++++++++++++++++++++++
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
149 #include "Hello.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
150
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
151 /* これは必須 */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
152 SchedDefineTask(Hello);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
153
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
154 int
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
155 Hello::run(void *rbuf, void *wbuf)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
156 {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
157 printf("Hello, World!!\n");
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
158
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
159 return 0;
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
160 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
161 ++++++++++++++++++++++++++++++++++
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
162
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
163 SchedDefineTask にもクラス名を入れてください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
164 rbuf, wbuf とかの使い方は 各例題を見ればわかります(basic とか)。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
165
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
166
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
167
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
168 -------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
169 2 タスクの登録
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
170 -------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
171
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
172 タスクは ID で管理するようにしています。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
173 ppe で動くタスクは ppe/ 以下の task_init.cc で書きます。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
174
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
175 ++++++++++++++++++++++++
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
176 #include "Func.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
177 #include "Scheduler.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
178
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
179 /* 必ずこの位置に書いて */
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
180 SchedExternTask(Hello);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
181
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
182 void
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
183 task_init(void)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
184 {
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
185 SchedRegisterTask(HELLO_TASK, Hello);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
186 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
187 ++++++++++++++++++++++++
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
188
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
189 SchedExternTask と SchedRegisterTask は必須です。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
190 RegisterTask では、クラス名の他に、対応する ID を入れてください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
191 ID は 整数で、現在は 0〜31 まで設定できます。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
192 上の場合は、Func.h で HELLO_TASK を enum でやってます。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
193
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
194 SPE で動かすタスクも、spe/spe-main.cc に書いてください。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
195 書き方は ppe と同じです。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
196
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
197
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
198 -------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
199 3. 最後に
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
200 -------------------
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
201 「もう書く事ねーのかよ」って意見もあるかもしれない。すまん。
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
202 一番上にあるように、まだまだ開発の初期っつーかなんつーか、なので
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
203 これからどんどん追加していきますので。