Avoid optimizing primitive #33 in vm.c (for VC++)

Paul Dufresne dufrp at hotmail.com
Sun Aug 8 21:34:45 PDT 2004


This:
===
#pragma optimize("g", off)
void _primitive33(struct Interpreter * interpreter, ObjectPointer * 
arguments, unsigned long int argumentsSize, struct OopArray * optionals)
{
  ObjectPointer y;
  ObjectPointer x;

  x = arguments[0];
  y = arguments[1];
  PSInterpreter_stackPush_(interpreter, ObjectPointer_asSmallInt(x) < 
ObjectPointer_asSmallInt(y)?CurrentMemory->TrueObject:CurrentMemory->FalseObject);
}
#pragma optimize("g", on)
===
seems also enough to be able to go upto the Slate prompt.
But I need to test the VM a bit more to see if it goes well like if I am 
able
to build a vm in it.

_________________________________________________________________
Balayez vos courriels entrants et sortants et les pièces jointes et 
contribuez à éliminer les virus destructeurs susceptibles d’y être intégrés. 
http://join.msn.com/?pgmarket=fr-ca&page=features/virus Commencez dès 
maintenant à profiter de tous les avantages de MSN Premium et obtenez les 
deux premiers mois GRATUITS*.




More information about the Slate mailing list