作者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