Thread Inline-ASM: Problem (12 answers)
Opened by master at 2005-11-12 13:23

master
 2005-11-12 13:23
#60042 #60042
User since
2003-10-20
610 Artikel
BenutzerIn
[default_avatar]
Habe das Inline-ASM Beispiel 1:1 kopiert(plus ein print) und modul installiert..

Es kommt aber immer dieser Fehler(woran könnte es liegen?):

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
print "ASM\n";

greet('Ingy');
greet(42);

use Inline ASM => <<'END', PROTO => { greet => 'void(char*)'};

.data
gstr: .string "Hello %s!\n"

.text
.globl greet

greet: movl 4(%esp),%eax
pushl %eax
pushl $gstr
call printf
leave
ret
END

Fehler-Code
----------------------------
F:\>C:\test.pl

Microsoft &reg; Program Maintenance Utility Version 1.50
Copyright &copy; Microsoft Corp 1988-94. All rights reserved.

C:\Perl\bin\perl.exe C:\Perl\lib\ExtUtils/xsubpp -typemap C:\Perl\lib\E
xtUtils\typemap test_pl_ce65.xs > test_pl_ce65.xsc && C:\Perl\bin\perl.exe -MEx
tUtils::Command -e mv test_pl_ce65.xsc test_pl_ce65.c
cl -c -nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -DNO_ST
RICT -DHAVE_DES_FCRYPT -DBUILT_BY_ACTIVESTATE -DNO_HASH_SEED -DUSE_SITECUSTOMIZE
-DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READFIX
-MD -Zi -DNDEBUG -O1 -DVERSION=\"0.00\" -DXS_VERSION=\"0.00\" "-IC:\Perl\li
b\CORE" test_pl_ce65.c
Der Befehl "cl" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
NMAKE : fatal error U1077: 'F:\WINDOWS\system32\cmd.exe' : return code '0x1'
Stop.

A problem was encountered while attempting to compile and install your Inline
ASM code. The command that failed was:
nmake > out.make 2>&1

The build directory was:
F:\_Inline\build\test_pl_ce65

To debug the problem, cd to the build directory, and inspect the output files.

at C:\test.pl line 7
BEGIN failed--compilation aborted at C:\test.pl line 21.
----------------------------
$i='re5tsFam ^l\rep';$i=~s/[^a-z| ]//g;$\= reverse "\U!$i";print;

View full thread Inline-ASM: Problem