作者dora2402 (dora2402)
看板EE_DSnP
標題Re: [建議] Final project 要用誰的 cir?
時間Thu Jan 12 15:15:38 2012
請問一下~
如果是要用自己的code~
除了把cirMgr cirGate覆蓋過去之外
還要改老師這篇說的東西嗎?
因為好像都找不到要comment掉的東西?
是已經被更新了嗎?
煩請解答~ 感謝:)
※ 引述《ric2k1 (Ric)》之銘言:
: 請參見 spec "3. What you should do?" 的第四點。
: [如果要使用我提供的 cirGate-ref-{32,64}.o 以及 cirMgr-ref-{32,64}.o]
:
: 1. 把 "src/cir/Makefile" 中 "#EXTRAOBJS =..." 那行 uncomment 掉.
: (i.e. 拿掉 "#")
: 2. make clean 之後再 make 32 or make 64。
: 如果先 make 32/64 再 make clean,
: cirGate.o 以及 cirMgr.o 的 symbolic links 會被 delete 掉!!
: 3. 你的 cirGate.{h,cpp} 以及 cirMgr.{h,cpp} 一定要寫在我提供的版本上面。
: 也就是說上面有的 functions 不要隨便把他們去掉。
: [如果要使用自己的 cirGate.cpp 以及 cirMgr.cpp]
:
: 1. 把 "src/cir/Makefile" 中 "#EXTRAOBJS =..." 那行 comment out 掉。
: (i.e. 開頭加上 "#")
: 2. 移除 cirMgr-ref*.o 以及 cirGate-ref*.o.
: 3. Comment out 掉 Makefile 中 "32:" 以及 "64:" 那兩個 rules 的
: @cd src/cir; ln -sf cirGate...
: @cd src/cir; ln -sf cirMgr...
: 那四行。 (i.e. 開頭加上 "#")
: 4. make clean; make 32 or 64 ==> 順序無所謂。
: 5. 你可以任意的修改 cirGate.{h,cpp}, cirMgr.{h,cpp},
: 不過在其他 cir*.cpp 檔案裏頭會用到的 member functions 像是:
: void CirMgr::printFECPairs() const; // used in cirCmd.cpp
: void CirMgr::Sweep(); void CirMgr::Optimize(); // used in cirOpt.cpp
: // and cirCmd.cpp
: void CirMgr::randomSim(); // used in cirSim.cpp and cirCmd.cpp
: 一定要包含在你的 cirGate.h 或是 cirMgr.h 裏頭,
: 否則一定會 compile error.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.4.195
1F:推 ric2k1:可以參見 #3530, 在新版的 ref src 中 src/cir/Makefile 01/12 16:26
2F:→ ric2k1:已經不需要 customize 了,所以自己寫的人可以不用管他。 01/12 16:29
3F:→ ric2k1:不過如果是用我的 code, 因為有新版以及舊版的關係, 01/12 16:29
4F:→ ric2k1:所以 cir/Makefile 要附上。<= 我可能必須改一下 MustExist 01/12 16:31
5F:→ dora2402:謝謝老師:) 01/12 22:01