[Vm-dev] benchmarking and recent results

Tobias Pape Das.Linux at gmx.de
Sat Oct 5 10:31:14 UTC 2013


Am 05.10.2013 um 11:48 schrieb Göran Krampe <goran at krampe.se>:

> Hey!
> […]
> PPS. Also tried using GCC 4.8.1 and 4.9, but then the compiled VM throws "Bus error: 10" at me. Note that it compiles using the switches for clang then... (Esteban and Igor - we need a nice way of switching compiler in CMakeVMMaker!)


You typically do that with the CMake invocation yourself like in:

CC="clang -m32" CXX="clang++ -m32" cmake $SRCDIR
cmake --build $BUILDDIR

or 
CC="gcc-4.9 -m32" CXX="g++-4.9 -m32" cmake $SRCDIR
cmake --build $BUILDDIR


CMake then does compiler detection and should detect 
Clang/GCC and act accordingly. However, if there are special
switches for either compiler, they should be in  some CMake file
and hence be generate by CMakeVMMaker…

See https://github.com/krono/self/blob/cmake/vm/cmake/platform.cmake#L65
for an example how to react to a found compiler (for example, i then used
the platform_compiler variable to select files, but it's up to you)

Best
	-Tobias

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 203 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20131005/b8829875/signature.pgp


More information about the Vm-dev mailing list