在 Windows、Linux 作業系統,分別利用BAT批次檔和Shell指令碼,產生類似“20110228_082905.txt”以“年月日_時分秒”命名的檔案。 Windows BAT批次檔:@echo off set time_hh=%time:~0,2% if /i %time_hh% LSS 10 (set time_hh=0%time:~1,1%) set filename=%date:~,4%%date:~5,2%%date:~8,2%_%time_hh%%time:~3,2%
Chapter 1 & 2: An introduction to device driver & Building and Running modules1. Concurrent, Security -- module writting notes2. Kernel stack is small, normally one page(4K). So don't create a lot of local variables and don't have a long
1. Display and mode setting: DRM. DRM defines connector/encoder/crtc to support display(including multi-monitor). And KMS makes mode setting happens in kernel space.2. 2D acceleration: X server EXA/UXA extension. Vendor should write a X server
GNU的make工作時的執行步驟入下:1、讀入所有的 Makefile;2、讀入被 include 的其它 Makefile;3、初始設定檔案中的變數;4、推導隱晦規則,並分析所有規則;5、為所有的目標檔案建立依賴關係鏈;6、根據依賴關係,決定哪些目標要重建;7、執行產生命令。 1-5 步為第一個階段,6-7為第二個階段。第一個階段中,如果定義的變數被使用了,那麼,make 會把其展開在使用的位置。但 make 並不會完全馬上展開,make
Ubuntu10.04下的arm-linux-gcc配置首先下載包arm-linux-gcc包:http://www.arm9.net/download-arm-linux-gcc-4.3.2.asp 然後配置:進入到 /usr/local/ 把arm-linux-gcc複製過來,解壓,把裡面的 arm 檔案夾複製到這個檔案夾。也可以用命令列: tar xvzf arm-linux-gcc-4.3.2.tgz –C /qwan@swd-qwan-desktop:~$ vi
頭疼啊,編譯又出錯!!!!錯誤資訊:/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/libstdc++.so.6: version `GLIBCXX_3.4.11' not found ,讓人情何以堪...有的地方說要修改連結,或者拷貝庫裡面的檔案到應用程式,我不理解,google了下和問了前輩,說我的gcc版本不夠,事實上輸入命令:gcc -dumpversion輸出為:4.3.4,幾乎是最新的吧,沒有半把,emerge -s