Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cpl:info:documentatie [2015/10/09 14:03]
laura.vasilescu [Documentație]
cpl:info:documentatie [2017/11/14 08:04] (current)
bogdan.nitulescu
Line 1: Line 1:
 ====== Documentație și alte resurse ====== ====== Documentație și alte resurse ======
 +
 +===== Instructiuni compilare LLVM 3.8 + CLANG 3.8 din surse ===
 +
 +**1. Downloadarea arhivei de LLVM 3.8.0[1] în /​home/​student/​Downloads/​**
 +
 +**2. Instalarea surselor în /​home/​student/​packages/​**
 +
 +# 7z x llvm-3.8.0.src.tar.xz
 +
 +# tar -xf llvm-3.8.0.src.tar
 +
 +# mkdir -p /​home/​student/​packages/​llvm-3.8.0/​build
 +
 +# mkdir -p /​home/​student/​packages/​llvm-3.8.0/​install
 +
 +# mv llvm-3.8.0.src /​home/​student/​packages/​llvm-3.8.0/​src
 +
 +
 +**3. Downloadarea arhivei de CLANG[2] și compiler-rt[3] în /​home/​student/​Downloads/​**
 +
 +
 +**4. Instalarea surselor în /​home/​student/​packages/​**
 +
 +# 7z x cfe-3.8.0.src.tar.xz
 +
 +# tar -xf cfe-3.8.0.src.tar
 +
 +# 7z x compiler-rt-3.8.0.src.tar.xz
 +
 +# tar -xf compiler-rt-3.8.0.src.tar
 +
 +# mv compiler-rt-3.8.0.src /​home/​student/​packages/​llvm-3.8.0/​src/​projects/​compiler-rt
 +
 +# mv cfe-3.8.0.src /​home/​student/​packages/​llvm-3.8.0/​src/​projects/​clang
 +
 +
 +**5. Automake**
 +
 +# cd /​home/​student/​packages/​llvm-3.8.0/​build
 +
 +<​code>​
 +cmake -G "Unix Makefiles"​ -DCMAKE_INSTALL_PREFIX=/​home/​student/​packages/​llvm-3.8.0/​install -DCMAKE_BUILD_TYPE=Debug /​home/​student/​packages/​llvm-3.8.0/​src
 +</​code>​
 +
 +**6. Compilarea
 +**
 +# make
 +
 +**7. Instalarea**
 +
 +# make install
 +
 +**8. Configurarea variabilelor de mediu în /​etc/​bash.bashrc**
 +
 +<​code>​
 +export LLVM_INSTALL=/​home/​student/​packages/​llvm-3.8.0/​install
 +
 +export PATH=$LLVM_INSTALL/​bin:​$PATH
 +
 +export LLVM_LIB_SEARCH_PATH=$LLVM_INSTALL/​lib
 +</​code>​
 +
 +**9. Testat**
 +# which lli
 +
 +# which clang
 +
 +La final ar trebui să putem folosi direct binarele de llvm 3.8
 +
 +[1] http://​llvm.org/​releases/​3.8.0/​llvm-3.8.0.src.tar.xz
 +
 +[2] http://​llvm.org/​releases/​3.8.0/​cfe-3.8.0.src.tar.xz
 +
 +[3] http://​llvm.org/​releases/​3.8.0/​compiler-rt-3.8.0.src.tar.xz
 +
 +
  
 ===== Documentație ===== ===== Documentație =====
  
   * Documentație utilă pentru cursul și laboratorul de Compilatoare :   * Documentație utilă pentru cursul și laboratorul de Compilatoare :
-{{ section>​cpl:​res:​materiale&​noheader&​nofooter&​noindent}}+{{section>​cpl:​res:​materiale&​noheader&​nofooter&​noindent}}
 ===== Social media ===== ===== Social media =====
  
   * [[https://​www.facebook.com/​compilatoare|Pagina cursului de Facebook]]   * [[https://​www.facebook.com/​compilatoare|Pagina cursului de Facebook]]
  
cpl/info/documentatie.1444388614.txt.gz · Last modified: 2015/10/09 14:03 by laura.vasilescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0