2016-07-03 13 views
0

ウィンドウ上でスーパーオプティマイザをコンパイルしようとしています。 (https://github.com/bonzini/superopt) 不幸にも、私の知識は非常に限られています。私が試した:ウィンドウ上でスーパーオプティクスをコンパイルする

私にエラーを与える
make CPU=-D386 superopt 

を:

cc  superopt.c -o superopt 
process_begin: CreateProcess(NULL, cc superopt.c -o superopt, ...) failed. 
make (e=2): The system cannot find the file specified. 
make: *** [superopt] Fehler 2 

を使って手動でのgccにコンパイラを設定した後:

gcc  superopt.c -o superopt 
In file included from superopt.c:27:0: 
superopt.h:104:2: error: #error You have to choose target CPU type (--with-arch). 
#error You have to choose target CPU type (--with-arch). 
^
In file included from superopt.h:130:0, 
       from superopt.c:27: 
longlong.h:1465:14: error: unknown type name 'UQItype' 
extern const UQItype __clz_tab[]; 
      ^
superopt.c:32:21: fatal error: version.h: No such file or directory 
compilation terminated. 
make: *** [superopt] Fehler 1 

make CPU=-D386 superopt CC=gcc 

私は次のエラーを取得します

iを正しく選択していないようです386。 ヒントをいただければ幸いです。

答えて

1

Thatは、 GNU superoptのソースコードではありません。それは誰かのプロジェクトのソースコードです GNU superopt、最終更新2008年、そして一見 はハードハット領域を放棄しました。

Thisは、 GNU superoptのソースコードです。 tarballを展開し、あなたと を試みたとして構築:

make CC=gcc CPU=-DI386 superopt 

I386、ない386

あなたのような警告が表示されます。20 yearoldのCコードは熱心にそれが呼び出す標準関数のプロトタイプを標準 ヘッダーが含まれていませんが、superoptが正常にビルドされますので、

warning: incompatible implicit declaration of built-in function 'foo' 

を。

+0

ありがとうマイク、それは私の2つのステップを近づけました。私はstdlib.hをインクルードする必要がありました。しかし、私はまだ多くのエラーを取得します。私はそれが次の行として\理解していないと思う。 –

+1

@DanyBittelようこそStackoverflowへようこそあなたの質問を答えたと思うかどうかは分かりませんが、もしあなたが言うなら、ありがとうございます。隣のチェックマークにチェックを入れて答えを受け入れてください(http://stackoverflow.com/help/accepted-answer)。 –

関連する問題