VM Maker: VMMaker-dtl.417.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

VM Maker: VMMaker-dtl.417.mcz

commits-2
 
David T. Lewis uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker-dtl.417.mcz

==================== Summary ====================

Name: VMMaker-dtl.417
Author: dtl
Time: 26 July 2020, 7:55:15.52 pm
UUID: 14446c08-7d2a-41a6-9370-2f5eba5ac1e8
Ancestors: VMMaker-dtl.416

Update to remove call to deprecated method in ImageFormat.

=============== Diff against VMMaker-dtl.416 ===============

Item was changed:
  ----- Method: VMMaker>>generateUtilityPrograms (in category 'generate sources') -----
  generateUtilityPrograms
  "Any additional sources not directly part of the VM may be generated here"
 
  Smalltalk
  at: #ImageFormat
  ifPresent: [:cls |  "generate ckformat utility program"
+ cls storeCkFormatOnFile: (self sourceDirectory fullNameFor: 'ckformat.c')]!
- cls storeCkstatusOnFile: (self sourceDirectory fullNameFor: 'ckformat.c')]!

Reply | Threaded
Open this post in threaded view
|

Re: VM Maker: VMMaker-dtl.417.mcz

Eliot Miranda-2
 
Hi David,

    what directory are you generating ckformat.c to?  I'll try and match it in VMMaker.oscog.

On Sun, Jul 26, 2020 at 4:55 PM <[hidden email]> wrote:
 
David T. Lewis uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker-dtl.417.mcz

==================== Summary ====================

Name: VMMaker-dtl.417
Author: dtl
Time: 26 July 2020, 7:55:15.52 pm
UUID: 14446c08-7d2a-41a6-9370-2f5eba5ac1e8
Ancestors: VMMaker-dtl.416

Update to remove call to deprecated method in ImageFormat.

=============== Diff against VMMaker-dtl.416 ===============

Item was changed:
  ----- Method: VMMaker>>generateUtilityPrograms (in category 'generate sources') -----
  generateUtilityPrograms
        "Any additional sources not directly part of the VM may be generated here"

        Smalltalk
                at: #ImageFormat
                ifPresent: [:cls |  "generate ckformat utility program"
+                       cls storeCkFormatOnFile: (self sourceDirectory fullNameFor: 'ckformat.c')]!
-                       cls storeCkstatusOnFile: (self sourceDirectory fullNameFor: 'ckformat.c')]!



--
_,,,^..^,,,_
best, Eliot
Reply | Threaded
Open this post in threaded view
|

Re: VM Maker: VMMaker-dtl.417.mcz

David T. Lewis
 
Hi Eliot,

On Mon, Jul 27, 2020 at 10:33:46AM -0700, Eliot Miranda wrote:
>  
> Hi David,
>
>     what directory are you generating ckformat.c to?  I'll try and match it
> in VMMaker.oscog.
>

In the old VMMaker, the ckformat.c file gets generated to the ./src directory,
and the compiled ckformat is included in lib/squeak/<version>/ along with
the VM executable and plugins.

The ckformat.c source  gets checked in with other generated sources here:
  http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/src/ckformat.c?revision=3782&view=markup

The /usr/local/squeak script (Ian's) uses the ckformat that it finds in
the lib folder, and the "vmrun" script that I wrote later on for my own
use takes advantage of it indirectly by using whatever ckformat that it
finds in a folder identified by "squeak -version".

Dave

Reply | Threaded
Open this post in threaded view
|

Re: VM Maker: VMMaker-dtl.417.mcz

David T. Lewis
 
The actual code generation in VMMaker comes from:

  VMMaker>>generateUtilityPrograms
      "Any additional sources not directly part of the VM may be generated here"

      Smalltalk
          at: #ImageFormat
          ifPresent: [:cls |  "generate ckformat utility program"
              cls storeCkFormatOnFile: (self sourceDirectory fullNameFor: 'ckformat.c')]



And this is just called from VMMaker>>generateEntire

Dave


On Mon, Jul 27, 2020 at 03:01:07PM -0400, David T. Lewis wrote:

>  
> Hi Eliot,
>
> On Mon, Jul 27, 2020 at 10:33:46AM -0700, Eliot Miranda wrote:
> >  
> > Hi David,
> >
> >     what directory are you generating ckformat.c to?  I'll try and match it
> > in VMMaker.oscog.
> >
>
> In the old VMMaker, the ckformat.c file gets generated to the ./src directory,
> and the compiled ckformat is included in lib/squeak/<version>/ along with
> the VM executable and plugins.
>
> The ckformat.c source  gets checked in with other generated sources here:
>   http://squeakvm.org/cgi-bin/viewvc.cgi/squeak/trunk/src/ckformat.c?revision=3782&view=markup
>
> The /usr/local/squeak script (Ian's) uses the ckformat that it finds in
> the lib folder, and the "vmrun" script that I wrote later on for my own
> use takes advantage of it indirectly by using whatever ckformat that it
> finds in a folder identified by "squeak -version".
>
> Dave
>