Public
INSTRUCTION
8 (13)
Prepared (Subject resp)
No.
ETHBAAT Jeno Balasko
1/1531-CRL 113 200/6 Uen
Approved (Document resp)
Checked
Date
Rev
Reference
ETHLEL Elemer Lelik
ETHGRY
2018-05-16
D
•
man
contains UNIX manual pages (for the Compiler and the Makefile
Generator).
•
demo
contains a simple TTCN–3 test suite (” Hello, world!”) together
with a sample test port and a compiled executable.
•
doc
contains this documentation in PostScript and PDF formats.
To complete the TITAN TTCN–3 Test Executor installation, some
environmental variables should be set and the login script should be modified.
Note:
The C++ source code generated by this version (patch level) of
Compiler is not compatible with older versions of TTCN–3 Base Library and
vice versa.
3
If upgrading TITAN from an older version, all modules of existing test suites
must be re-translated with the new compiler in order to make them running
with the new libraries.
It is recommended to make a backup copy of the older version of the
distribution. There are some minor incompatibilities in the compiler’s grammar
that may cause many syntax errors in TTCN–3 modules that were translated
correctly with earlier versions.
2.3
Install TITAN with Clang
Currently it is experimental to use TITAN with clang on Ubuntu operating
system. It was tested only on Ubuntu. In order to use TITAN with clang on
Ubuntu some steps must be done:
1. Install
clang-3.8
(3.8 is the required version).
2. Go into your TITAN installation directory and open (or create) the
Makefile.personal file and add the following lines:
CXX := clang++-3.8
CC := clang-3.8
3. If TITAN is already compiled run
make distclean
command
4. To compile TITAN with clang run
make
and
make install
commands.
There are some important notes about using clang with TITAN:
•
The C++ source code generated and TITAN must be compiled with the
same version of clang. See section 2.2 note.
•
Makefiles of TTCN-3 projects must be modified by hand
(replace
CXX = g++
with
CXX = clang++3.8
). Or regenerated using
makefilegen
, to use clang compiler. TITAN’s
makefilegen
can detect if it
was compiled with clang and will generate makefiles with clang as default
C++ compiler.
•
Required clang version is
3.8
.
3
Sometimes even the linking fails; but a successful linking does not mean that everything is correct at all.