[cfe-dev] Direct creation of hello.exe creates error message

Andreas Bittel andreas.bittel at cdn-automotive.com
Tue Jul 26 04:39:57 PDT 2011


Dear Others,

I wanted to create hello.exe like it is mentioned in

	http://llvm.org/docs/GettingStartedVS.html

in step 2 second part.

But I did the following:

C:\Programme\LLVM>build\bin\Debug\clang -c hello.c -o hello.exe

C:\Programme\LLVM>hello.exe

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?

The following was possible:
	
	% clang -c hello.c -emit-llvm -o hello.bc
	% lli hello.bc

	"hello world" was printed.



Tia

Kind regards

Andreas


-------------------------------------------------------------
CDN automotive AG
Dr.-Ing. Andreas Bittel
Im Gewerbepark C 27
93059 Regensburg

Tel: +49.941.646888.144
Fax: +49.941.646888.100
Mobil: +49.176 291 555 69
E-Mail: andreas.bittel at cdn-automotive.com
Website: www.cdn-automotive.com

*************************************************************
Diese E-Mail kann vertrauliche und/oder rechtlich geschuetzte
Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder
diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort
den Absender und vernichten Sie diese E-Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser E-Mail ist
nicht gestattet.

This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
*************************************************************

CDN automotive AG

Vorstand: Gitta Bremer
Vorsitzender des Aufsichtsrates: Hilmar Lesch
Sitz der Gesellschaft: Wolfratshausen
Amtsgericht Muenchen: HRB 175083
UST-ID: DE 233263317
-------------------------------------------------------------


-------------- next part --------------
A non-text attachment was scrubbed...
Name: English_translation_Error_Message.doc
Type: application/msword
Size: 28160 bytes
Desc: English_translation_Error_Message.doc
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110726/9cea9139/attachment.doc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT418485.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110726/9cea9139/attachment.txt>


More information about the cfe-dev mailing list