[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
33.4 Caveats
In general Bigloo’s cross-compilation works fine, but developers should be aware of some limitations:
- Macros will be executed on the build platform. The
macro-environment (and in particular its integer types) might not be
the same. For instance an
elong
on the build-system might be of different size than anelong
on the host-system. - Bigloo will read numbers on the build system and adapt the container size accordingly. Suppose for instance that the build system features 64bit longs, but the host system only allows for 32bit longs. The number 2^35 fits easily into a long on the build-system but will overflow on the host-system. The container will however be determined on the build system and thus a long will be used. This is only a problem for big integer literals.
- A cross-compiled Bigloo uses (by default) the same C compiler
that has been used to compile the Bigloo. Once the executable has been
transferred to the host-system the C cross-compiler does very likely
not exist anymore. Therefore Bigloo will need to be invoked with the
-cc
flag on the host-system (under the assumption that there exists a C compiler).This drawback can be eliminated by directly compiling Bigloo on the host (since there exists a C compiler).
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 31, 2014 using texi2html 5.0.