   Global variables in script engine?
  Hi, im making a scripting engine and im taking a sample of visual studios asm generated code and machine code to make my WM.And from there I can see that every variable is global in asm code? This is new to me becose I haven''t ever coded in asm.So how does your scripting engine work? Do you push and pop all the time in execution? Or are the variables somehow loaded in to a memory before execution? 
  Hi,look here (1. Part).2. Part.3. Part.4. Part. 5. and last part.This should answer about all questions you could have about writing a scripting engine in C++.Have fun,Beren   [edited by - Beren77 on August 1, 2003 7:49:06 AM];  Could you expand on that a little.  I''m not sure what you mean.   --------------------Nicholas Skapuraskapura.2@wright.eduhttp://skap.8k.comAIM: skap35 ;quote:Original post by skap20  Could you expand on that a little.  I''m not sure what you mean.   --------------------Nicholas Skapuraskapura.2@wright.eduhttp://skap.8k.comAIM: skap35   When you have code in your script that tells to add new var (like in c/c++: int var; ) you have PUSH opcode to do that so memory is reserved from stack.But I was wondering how asm coders code that part becose asm don''t have that kind of push and pop. And instead of that all variables are global in asm?So my opcode vs asm opcode // my opcode (not excatly)// int i = 123;PUSH int // (pushed to address 16)MOV 16,123//in asm there isnt push so that the queston how is it dealed?MOV _i,123Hope im not asking jerk questons 