發表文章

[compiler]hw7 參考資料

作業規定 操作測試流程  java Yuhina < test.yu  ( 產生 test.j) java -jar  jasim123.jar < test.j java test     要可以執行成功 實作方法 1. 紀錄使用的register跟變數的對應關係 2.做好IR  跟jasmincode 的對應 3. 根據AST利用 IR表示轉成jasmin code 參考資料 0. intermediate code OP( e1 , e2 )   => string op(string operator , string  e1, string e2); =>OP:= ADD | SUB |  MUL | DIV | MOD //arithmetic | AND | OR                                     //bit logic | EQ | NEQ | LT | GT | LE | GE      //comparisons NAME(n) =>string name(string n );  //return register number or labol ESEQ(s,e) =>  strimg eseq(string s,string e); //return e CODE(i) => string code(string i );//constant integer MEM(e) => load e register CALL(ef , e0 , e1 , e2,... ) => function call  string call( string fName,string[] args) MOVE(dest , e) => string move(string dest,string e ) => move(dese,e):=dest = TEMP(t) //assign to temporary t | dest = MEM(e) // assign to location e EXP(e) => string exp(e) 執行e 忽略結果 SEQ(s1,s2 , ... ,sn) => string seq(str...

[OS]term project

per - cpu  Macro   http://www.chineselinuxuniversity.net/patches/28199.shtml  smp_processor_id http://www.lslnet.com/linux/f/docs1/i32/big5249138.htm Intel Architecture Software Developer’s Manual http://www.intel.com/design/pentium/manuals/24319101.PDF

[hw5] 要用到的consol圖形介面

Ncurses how to http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/

SIP資料

SIP message 的語法規定 (BNF) SIP-message = Request | Response Request = Request-Line *( message-header ) CRLF [ message-body ] Response = Status-Line *( message-header ) CRLF [ message-body ] ....... 參考資料  http://www.tech-invite.com/Ti-sip-abnf.html  sip中文 介紹(寫的很像翻譯的spec害我誤會) http://blog.xuite.net/livefish/blog/7585828

FIFO exmple

NOTE: 當FIFO開啟時會被suspend直到FIFO兩端都被開啟為止 FIFO範例 http://bantolinux.blogspot.com/2007/05/pipe-fifo-api-v1.html

[hw5]作業規定與參考資料

[語法檢查] 建置一個symble table    1.作 type - vriable name之間的關連 2.function name - parameters, result type and local variables 之間的關連 3. function parameter -type之間的關連 4.class name - variable declarations之間的關連 [yuhina types] int , boolean , string , int[] ,class name [error check] 1. Check for undeclared variables 根據目前的scope 查詢symbol table檢查是否宣告 2.Multiple variable declarations 根據目前的scope 查詢symbol table檢查是否宣告 3.Type checking [必須提供的type check] 1. arithmetic expression 2.assignment statement 3. function call [java doc] hashtable http://java.sun.com/j2se/1.5.0/docs/api/java/util/Hashtable.html symboltable http://www.jstatcom.com/javadoc/com/jstatcom/model/SymbolTable.html [reference] jtb document   http://compilers.cs.ucla.edu/jtb/jtb-2003/docs.html Types and Type Checking http://lambda.uta.edu/cse5317/notes/node30.html

load balance

load balance(負載均衡) [定義] load balance是由多對等的伺服器組成一個伺服器集合,每台伺服器有著對等的地位單一一台伺服器都可以單獨對外界做服務, 無需其他伺服器幫忙 。透過某種技術  將client送來的請求平均分配於對等結構中的每個伺服器而接受到請求的伺服器獨立作回應 [作用] 當伺服器負載非常大的時候應該考慮使用load balance使請求平均分散與每個內部伺服器 [Open source Load Balancer] Linux Virtual Server (LVS) http://www.linuxvirtualserver.org/whatis.html Red Hat Cluster Suite http://www.redhat.com/cluster_suite/ The High Availability Linux Project Ultra Monkey http://www.ultramonkey.org/ OpenLoBa 需要填一些資料才可以下載使用 http://www.vmware.com/appliances/directory/117 balance http://www.inlab.de/balance.html open source VOIP softwaere http://www.voip-info.org/wiki-Open+Source+VOIP+Software