Squeak VM for Darwin/X11R6 for PPC?
Ned Konz
ned at bike-nomad.com
Wed Apr 10 14:54:44 UTC 2002
On Tuesday 09 April 2002 04:41 am, Bruce ONeel wrote:
> This turned out to be quite bizzare.
>
> The line
>
> register char * localSP SP_REG;
>
> got a syntax error. The two lines:
>
> register char * localSP;
> register char * SP_REG;
>
>
> were just fine fom the compiler's pov.
Yes, but they don't mean the same thing. The intent of the first was
not to define two char*, but to modify the definition of localSP to
force a register choice by the compiler.
The SP_REG is a macro that should expand to whatever magic is required
for your compiler to make it use a particular register.
In GCC, that's usually something like
# define SP_REG asm("%edi")
Unfortunately, compilers differ considerably in what they require.
Some may require magic incantations prior to the identifier.
Unless you're using GCC, you should be compiling interp.c, not
gnu-interp.c. Without including sqGnu.h you should be able to compile
OK.
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
More information about the Squeak-dev
mailing list
|