Forums: Help (Thread #3346)

kerner_id.h (2003-09-11 14:31 by Anonymous #5839)

わさびぃです。
サンプルを強引にHEWでビルド中です。
kernel_id.h
が見つからないと言っています。
事実ダウンロードしました、h4_101.lzh
のなかには、無かったのですが・・・

おわかりになりませんか?

Reply to #5839×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 14:41 by hamayan #5840)

実はここが最もITRONと言うか、HOSの取っ付き難い所かも知れません。
ターゲットプログラムを作るには手順が有り、まずコンフィギュレーターで二つのファイルを生成します。
一つがkernel_cfg.cで、一つはkernel_id.hです。

コンフィギュレーターの機能は、静的に生成できるオブジェクトは、コンフィギュレーターを使って生成する事で、プログラマーへの負担を減らします。

と言う訳で、まずコンフィギュレーターを入手しましたでしょうか?また、パスの通っているフォルダーに入っていますでしょうか?
Reply to #5839

Reply to #5840×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 15:00 by hamayan #5842)

ああそうか、リリース版にはコンフィギュレーターが付属して来ますね。
では、それをパスの通ったフォルダに移動します。

HEWでコンパイルと言う事で、GUIからの作業となると、どうしてもこのコンフィギュレーションが抜けてしまいますので(私はHEW2付属のコンパイラを、コマンドラインで利用しています)、ここだけ手作業?で行って見て下さい。

HEWのコンパイラにパスが通っているなら、DOS窓から、
ch38 -cpu=300ha -PREP -osystem.i system.cfg
続けて、
hos4cfg system.i
で、kernel_cfg.cとkernel_id.hが出来ると思います。

system.iはsystem.cfgをプリプロセッサに掛けた中間ファイルです。
Reply to #5840

Reply to #5842×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 16:20 by Anonymous #5843)

>system.iはsystem.cfgをプリプロセッサに掛けた
>中間ファイルです。
を掛けられませんでした。
具体的には、どうするのかお教えください。
わさびぃ
Reply to #5839

Reply to #5843×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 16:41 by Anonymous #5844)

あ、実は先ほどの中身、それですね。
文法ミスみたいです。
できたと見られます。・・・
どうも。

この辺りが、とっかかりのあれですねぇ・・・(TT)
わさびぃ
Reply to #5843

Reply to #5844×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 16:50 by hamayan #5846)

取り敢えず、カーネルライブラリの構築と、サンプルの起動まで辿り着ければ、後はルーチンなので問題無くなるのですが。
Reply to #5844

Reply to #5846×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 16:44 by hamayan #5845)

DOS窓から、ch38自体は動きますでしょうか?
ch38に続く-cpu=300haは、これが無いとエラーになるので取り敢えず。
-PREPは、プリプロセスだけ行う指定。
-oは出力ファイル名の指定です。

HEWのPDFをマニュアルには、コマンドラインでコンパイルする時の設定方法が書いて有りますので、パスの通し方、標準ライブラリの作り方等はそちらを御覧ください。
Reply to #5843

Reply to #5845×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: kerner_id.h (2003-09-11 16:56 by hamayan #5847)

すいません、
ch38 -cpu=300ha -PREP=system.i system.cfg
ですね。
Reply to #5845

Reply to #5847×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login