You are on page 1of 7

b a na na hut .

ne t
Hom e

A bou t

Person al

Software

Search this site

Sof t wa re-Gu i des

Work

Home

Software-Guides >

About

Using LLVM with


MobaXterm

Contact
Rsum
Personal
Blog
Wr iting
Softw are
Mir anda IM

A simple guide to to getting LLVM to compile in


Windows using MobaXterm (and to a lesser extend

MobaXter m-Plugins

Cygwin)

MobaXter mHer e

**Note: All of the links in this guide open in new

Pr ompt Color izer

windows/tabs.

REX
UDTour Guide
Softw are-Guides
Rever se engineer ing
Using LLVM w ith
MobaXterm
Work
CNC
LLV M
Many-Cor e FDTD
Many-Cor e FFT
UHPC
Sitemap

Set t ing up t he
Compilat ion
Environment :
1 . Download
MobaXterm from
MobaXterm 's
website here.
2 . Download the
following plugins
from
MobaXterm 's
Plugins
Listing here and
place them into
y our MobaXterm

directory :
1 . Gcc, G+ + ,
and
dev elopm ent
tools
(for
Compiling
LLVM)
2 . Perl
(for Utilities)
3 . Subv ersion
(SVN)
(for the
LLVM
repository)
4 . Tcl / Tk /
Expect
(for the
Automated
test suite?)
3 . Download the
following
additional 3 rd
party plugins
from m y website
here and place
them into y our
MobaXterm
directory :
1 . CMake
(for building
LLVM. See here for

details)
2 . Graphv iz
(for
viewGraph()
functionality. See
here for
details)
3 . Py thon
(needed by
LLVM-lit)
Downloading t he
Sources:
(see here for
details)
1 . Choose a
directory were
y ou want to place
the LLVM source
code.
2 . download the
LLVM source
code:
1 . cd /path/to
/llv m src-code
2 . sv n co
https://llv m .org
/sv n/llv m project
/llv m /trunk
llv m

3 . Download the
Clang source
code:
1 . cd /path/to
/llv m src-code
2 . cd
llv m /tools
3 . sv n co
https://llv m .org
/sv n/llv m project
/cfe/trunk
clang
Compiling LLVM
(MobaXt erm/Cy gwin
specific):
1 . Setup the linker
to support a large
heap size
(otherwise debug
builds will fail
when linking lto
and libclang):
1 . peflags
--bigaddr= 1
/bin/ld
(see here for
details)
2 . Setup the build
directory :

1 . Choose a
directory
where y ou
want to
com pile
llv m .
2 . cd /path/to
/llv m -builddirectory
3 . cm ake
-DCMAKE_BUILD_TYPE:STRING= Debug
/path/to
/llv m source-code
(Change the
build type to
Release for
the
non-debug
build)
3 . Com piling
1 . m ake all
2 . m ake check
3 . peflags
--bigaddr= 1
/path/to
/llv m -builddirectory
/bin/clang
(for large
heap size or
it will fail to

call its low


level driver)
4 . peflags
--bigaddr= 1 /path/to
/llv m -builddirectory
/bin/clang-x.x
(where x.x is
the version
number)
Addit ional Not es:
You will need to
run peflags on
/bin/ld ev ery tim e
y ou start
MobaXterm . It
would
be pertinent to
enable a
persistent HOME
directory in
MobaXterm 's
preferences and
add the line to
~/.bash_profile.
You will need to
run peflags on
clang ev ery tim e
y ou recom pile.
References:

http://m obaxterm .m obatek.net/


http://m obaxterm .m obatek.net
/plugins.htm l
http://llv m .org
/docs/CMake.htm l
http://llv m .org
/docs/Program m ersManual.htm l#ViewGraph
http://llv m .org
/docs/GettingStarted.htm l
http://cy gwin.com
/cy gwin-ug-net
/setupm axm em .htm l
Quest ions/Comment s
/Correct ions?
See m y Contact
page.

Comentarios
No tienes permiso para aadir comentarios.

Iniciar sesin | Informar de uso inadecuado | Imprimir pgina | Eliminar acceso | Con la tecnologa de Google Sites

You might also like