Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Stéphane Ducasse 1
Stéphane Ducasse
stephane.ducasse@inria.fr
http://stephane.ducasse.free.fr/
Run-Time...
S.Ducasse 2
Smalltalk Run-Time Architecture
• Virtual Machine + Image + Changes and Sources
• Image = bytecodes
• Sources ...
S.Ducasse 3
Does and Dont
Do not edit the source files by hand
Do not lose your change file (it contains your code)
You ca...
S.Ducasse 4
All your changes are recorded
So have a lot at the changes sorter and change recovery
tools suite of your dial...
S.Ducasse 5
Smalltalk Run-Time Architecture
• The byte-code is in fact translated into native code by a
just-in-time compi...
S.Ducasse 6
VWorks Smalltalk Run-Time Architecture
Sources
Shared by everybody
VM
byte code of all the objects Source of a...
S.Ducasse 7
VWorks Runtime Architecture
Parcels reproduce the schema of the image and change:
*.pcl are the byte code, *.p...
Upcoming SlideShare
Loading in …5
×

3 - OOP - Runtime

1,050 views

Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this

3 - OOP - Runtime

  1. 1. Stéphane Ducasse 1 Stéphane Ducasse stephane.ducasse@inria.fr http://stephane.ducasse.free.fr/ Run-Time...
  2. 2. S.Ducasse 2 Smalltalk Run-Time Architecture • Virtual Machine + Image + Changes and Sources • Image = bytecodes • Sources and changes = code (text) A bytethe vir IMAGE2IMAGE2StandShar IMAGE1.IMAGE1. All the objeat a momen One per us +
  3. 3. S.Ducasse 3 Does and Dont Do not edit the source files by hand Do not lose your change file (it contains your code) You cannot lose code (if you keep the change file) Always use Smalltalk to save your code Always use Smalltalk to rename your environment
  4. 4. S.Ducasse 4 All your changes are recorded So have a lot at the changes sorter and change recovery tools suite of your dialect. You should not lose code.
  5. 5. S.Ducasse 5 Smalltalk Run-Time Architecture • The byte-code is in fact translated into native code by a just-in-time compiler (inVW, ST/X) • The source and the changes are not necessary for interpreting the byte-code, this is just for the development. Normally they are removed for deployment. • An application can be delivered as some byte-code files that will be executed with aVM.The development image is stripped to remove the unnecessary development components.
  6. 6. S.Ducasse 6 VWorks Smalltalk Run-Time Architecture Sources Shared by everybody VM byte code of all the objects Source of all the objects piece of image (byte code) piece of source (text) Image currently in memory Change currently in memory User 1 User 2 VM Image Change Parcel(pcl) Parcel(pst)
  7. 7. S.Ducasse 7 VWorks Runtime Architecture Parcels reproduce the schema of the image and change: *.pcl are the byte code, *.pst are the source code Parcels allows for fast atomic loading/unloading and prerequisite parcels Good for dynamic loading and source code management

×