"illegal instruction" problem

"illegal instruction" problem

Hi ,I built a "hello world" c++ program using icpc in Linux, but it crashes with "illegal instruction" when running in a CentOS VM. If built with g++, it is OK.see below the simple hello world source code and CPU information of the CentOS.rickyswang@gmail.comThanks,Ricky//!--icpc -o alpha.icpc alpha.cpp//!--g++ -o alpha.g++ alpha.cpp//alpha.cpp source code#include int main(){ char x[] = "hello world!\\n"; printf(x); return 0;}
and below is the cpu info of the CentOS:processor : 0vendor_id : AuthenticAMDcpu family : 6model : 10model name : mobile AMD Athlon XP-M 2200+stepping : 0cpu MHz : 1666.740cache size : 512 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : nofpu : yesfpu_exception : yescpuid level : 1wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up nonstop_tsc ts fid vidbogomips : 3333.48

publicaciones de 2 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

The Intel compiler uses "-msse2" compiler option by default. More information can be found at http://software.intel.com/en-us/articles/performance-tools-for-software-...

To run the resulting binary the processor has to support SSE2 instructions. Looks like the the CPU in your system only supports SSE not SSE2. Does the binary run when you compile with g++ using the "-msse2" option?


Inicie sesión para dejar un comentario.