Dear Sebastian, thank you for your help. How do I have to proceed to execute the hello.exe?
tia Kind regards Andreas >>>-----Ursprüngliche Nachricht----- >>>Von: [email protected] [mailto:cfe-commits- >>>[email protected]] Im Auftrag von Sebastian Redl >>>Gesendet: Dienstag, 26. Juli 2011 11:47 >>>An: [email protected] >>>Betreff: Re: [cfe-commits] Direct execution of hello.exe creates >>>errormessage >>> >>>On 26.07.2011 11:28, Andreas Bittel wrote: >>>> Dear Others, >>>> >>>> I wanted to create hello.exe like it is mentioned in >>>> >>>> http://llvm.org/docs/GettingStartedVS.html >>>> >>>> in step 2 second part. >>>> >>>> The following was possible: >>>> >>>> % clang -c hello.c -emit-llvm -o hello.bc >>>> % lli hello.bc >>>> >>>> "hello world" was printed. >>>> >>>> But I did the following: >>>> >>>> C:\Programme\LLVM>build\bin\Debug\clang -c hello.c -o hello.exe >>>> >>>> C:\Programme\LLVM>dir >>>> Datenträger in Laufwerk C: ist winXP >>>> Volumeseriennummer: 9447-8005 >>>> >>>> Verzeichnis von C:\Programme\LLVM >>>> >>>> 26.07.2011 11:12<DIR> . >>>> 26.07.2011 11:12<DIR> .. >>>> 25.07.2011 16:12<DIR> build >>>> 25.07.2011 14:23 632 hello.bc >>>> 25.07.2011 11:26 78 hello.c >>>> 26.07.2011 11:12 293 hello.exe >>>> 25.07.2011 14:29 274 hello.obj >>>> 22.07.2011 13:06<DIR> llvm >>>> 25.07.2011 07:51 41.472 >>>ProjectFileFolders_are_not_supported_in_this_version_of_application.do >>>c >>>> 5 Datei(en) 42.749 Bytes >>>> 4 Verzeichnis(se), 25.853.767.680 Bytes frei >>>> >>>> After that I received the error message (see attachment): >>>> >>>> English translation: >>>> >>>> 16-Bit-MS-DOS-Part System >>>> C:\WINDOWS\system32\cmd.exe - hello.exe >>>> The NTVDM-CPU has discovered an invalid command. >>>> CS:0ffc IP:ffc OP:0f 0f 85 01 00 Click on "close", to terminate >>>application >>>> Close / Ignore >>>> >>>> What do I have to do to create a "hello.exe" which works without >>>errors? >>>> >>>Why is it trying to run a Clang-generated executable within the NTVDM >>>system? That's the emulator NT uses for running 16-bit DOS apps. >>>There's something going wrong there. >>> >>>Sebastian >>>_______________________________________________ >>>cfe-commits mailing list >>>[email protected] >>>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits >>> _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
