./configure --disable-optimized --enable-assertions
--debug-pass={Structure, Executions, Details}
M-x outline-mode
C-c C-t
C-c C-a
schedtool -a 0x1 -e Program ( 0x1 means CPU0, 0x2 means CPU1, 0x4 means CPU2)
--enable-gold --enable-plugins, and use ld.gold to replace ld in the bin directory
--with-binutils-include=/path/to/binutils/src/include
/path/to/llvm/install/lib/LLVMgold.so to /path/to/llvm-gcc-frontend/libexec/gcc/x86_64-unknown-linux-gnu/4.2.1/
PATH
/path/to/llvm/install/lib to LD_LIBRARY_PATH and export it
llvm-gcc -O4 -c to generate bit-code objective files, and call llvm-gcc -use-gold-plugin to do link-time optimizations and generate the final executable
/sys/devices/system/cpu/cpu0/cache/index0. "cpu+(a number)" is for a specific physical thread. "index+(a number)" is for a specific cache like L1 data/inst cache or L2 unified cache.
sizeof() information
| N-bit machine | void* | char | int | unsigned int | long | unsigned long | long long | unsigned long long | float | double | long double |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 32 | 4 | 1 | 4 | 4 | 4 | 4 | 8 | 8 | 4 | 8 | 12 |
| 64 | 8 | 1 | 4 | 4 | 8 | 8 | 8 | 8 | 4 | 8 | 16 |
sudo /etc/init.d/ssh restart
llvm-gcc -O4 -c xxx1.c -o xxx1.bc llvm-link xxx1.bc xxx2.bc ... -o yyy.bc opt -std-link-opts yyy.bc -o zzz.bc
matlab -nodesktop, then input run SCRIPT in the matlab console.
source cshrc; runspec 462.libquantum -D -i test -n 1
stdout and stderr to different files in C shell: (prog > output) >& errors
--disable-optimized or do make with ENABLE_OPTIMIZED=0
llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 YYY.dot >YYY.ps; ps2pdf haha.ps.
etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back); screen -list (show all available screens)
du -h --max-depth=1 .
Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to smtp.gmail.com, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TL