[LLVMbugs] Ubuntu LLVM compiled a page of Simit-ARM with errors

Lee Wanghao xaero_1 at hotmail.com
Wed Jan 14 00:31:53 PST 2009


Hi Everyone,



I am new to LLVM and I am not sure if its capable of being a compilation

strategy to accelerate Dynamic Compiled Instruction set Simulation.



I have tried changing the source code of: http://simit-arm.sourceforge.net/ to

compile pages of C++ code (translated from Arm Assembly) on the fly using

llvm-g++ and it gave the following errors:



In file included from

/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/bittypes.h:22,

                 from

/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/misc.h:20,

                 from

/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/armemul.h:20,

                 from

/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/arch.hpp:120,

                 from

/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/arch_jit.hpp:20,

                 from /home/wanghao/.ema/u512//Xcompiled_0.cpp:1:

/usr/include/inttypes.h:385: error: `__extern_inline' does not name a type

/usr/include/inttypes.h:401: error: `__extern_inline' does not name a type

/usr/include/inttypes.h:415: error: `__extern_inline' does not name a type

/usr/include/inttypes.h:432: error: `__extern_inline' does not name a type

In file included from

/home/wanghao/Desktop/SimIt-ARM-3.0/build/include/dyn_arm_emul.hpp:18,

                 from /home/wanghao/.ema/u512//Xcompiled_0.cpp:2:

/usr/include/pthread.h:1110: error: expected constructor, destructor, or type

conversion

/usr/include/pthread.h:1110: error: expected `,' or `;'

Total user time  : 3.188 sec.

Total system time: 0.472 sec.

Simulation user time  : 2.892 sec.

Simulation system time: 0.400 sec.

Caching user time  : 0.296 sec.

Caching system time: 0.072 sec.

Simulation speed : 2.285e+07 inst/sec.

Total instructions : 83634854 (83M)

Requested blocks  : 1.

Cache-hit count : 0.

Connected servers/threads : 2 of 2.

Compilation count :

  thread 0: 0

  thread 1: 0



Please also advise on whether LLVM-GCC is able to do any aid to Instruction Set

Simulation. Thanks in advance.



Regards

Wang Hao Lee
_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20090114/93a325b2/attachment.html>


More information about the llvm-bugs mailing list