Differences

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

Link to this comparison view

cpl:info:documentatie [2015/07/27 11:16]
laura.vasilescu created
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 ======
  
-===== Documentație =====+===== Instructiuni compilare LLVM 3.8 + CLANG 3.8 din surse ===
  
-  ​Documentație utilă pentru cursul ​și laboratorul ​de Compilatoare găsiți la [[http://elf.cs.pub.ro/cpl/res/doc| această adresă]].+**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 
 + 
 +[3http://llvm.org/​releases/​3.8.0/​compiler-rt-3.8.0.src.tar.xz 
 + 
 + 
 + 
 +===== Documentație =====
  
 +  * Documentație utilă pentru cursul și laboratorul de Compilatoare :
 +{{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.1437984973.txt.gz · Last modified: 2015/07/27 11:16 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