My Personal Info


Technical Tips

  • the 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

  • how to (re)start ssh server: sudo /etc/init.d/ssh restart
  • how to output a single LLVM bitcode file:
    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
  • run matlab without gui: matlab -nodesktop, then input run SCRIPT in the matlab console.
  • run SPEC CPU2006 workloads: source cshrc; runspec 462.libquantum -i test
  • redirect stdout and stderr to different files in C shell: (prog > output) >& errors
  • llvm build debug version: gmake ENABLE_OPTIMIZED=0
  • llvm control flow graph generation: llvm-as < XXX.ll | opt -analyze -view-cfg; dot -Tps2 >; ps2pdf
  • use etags to do tagging recursively: find . -name "*.[chCH]" -print | etags -
  • use screen command: screen (create a screen); ctrl+a d (detach the screen); screen -r (get a screen back)
  • check disk usage: du -h --max-depth=1
  • set SMTP server for Thunderbird: Edit -> Account Settings -> Outgoing Server (SMTP), set Server Name to, select use name and password, input your gmail address, do NOT use secure authentication, set Connection security to SSL/TL
  • GPU Computing in URCS
  • How to create an Eclipse project with existing code
  • Mercurial: The Definitive Guide
  • C++ Programming Style Guidelines
  • MPI Tutorial
  • Linux Shell Scripting Tutorial
  • JikesRVM

This topic: Main > TWikiUsers > XiaomingGu
Topic revision: r21 - 2011-03-01 - XiaomingGu
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding URCS? Send feedback