Squeak VM gcc 3.4 inline assembly

Lyndon Tremblay humasect at shaw.ca
Tue Aug 10 12:54:45 UTC 2004


Squeak VM CVS, gcc3.4, cygwin, Right here:

gcc -o
./sqWin32FFI.o -g -march=athlon -mtune=athlon -mwindows -O3 -fomit-frame-
pointer -funroll-loops -fschedule-insns2 -I. -I../../ -I../..//vm -Ic:/dx7sd
k/in
clude  -DWIN32_FILE_SUPPORT -DNO_STD_FILE_SUPPORT -DNDEBUG -DLSB_FIRST -DX86
 -DS
QUEAK_BUILTIN_PLUGIN -c sqWin32FFI.c
In file included from ../..//vm/sq.h:199,
                 from sqWin32FFI.c:14:
../..//vm/sqPlatformSpecific.h:64:7: warning: extra tokens at end of #else
direc
tive
sqWin32FFI.c: In function `ffiCallAddress':
sqWin32FFI.c:324: error: missing terminating " character
sqWin32FFI.c:325: error: `movl' undeclared (first use in this function)
sqWin32FFI.c:325: error: syntax error before '%' token

#ifdef __GNUC__
 asm("
      movl %%ebp, _oldBP
...etc

I've played around with it, quoting each line, escaping newlines, etc. Has
the format changed for gcc 3.4? I haven't found anything relating to that.

--Lyndon




More information about the Squeak-dev mailing list