dumping compiled image to a file

8 views
Skip to first unread message

Joel Reymont

unread,
Feb 1, 2009, 12:50:29 PM2/1/09
to SEAforth
Imagine that instead of having blinktest.vf send the compiled image to
[x]>USBDrive I wanted to save it.

I have a working Mac x86-32 driver for the thumb drive but don't know
whether I have all the source code to rebuild vfl.

I'm thinking I can dump the compiled blinktest on Linux and then send
it to the drive on the Mac.

How do I dump the blinktest compiled image to a file?

Thanks, Joel

Joel Reymont

unread,
Feb 1, 2009, 1:00:58 PM2/1/09
to seaf...@googlegroups.com
It looks like +[x]>OnTool" exists for this purpose but replacing

[x] find-drive /USBdrive [x]>USBdrive close drive

with either

[x] +[x]>OnTool" foo.dat"

or just

+[x]>OnTool" foo.dat"

gives me a segmentation violation.

Thanks, Joel

---
http://tinyco.de
--- Mac & iPhone

Joel Reymont

unread,
Feb 1, 2009, 1:09:08 PM2/1/09
to SEAforth
Come to think about it, +[x]>OnTool is still not what I need.

I want to save into a file the buffer that [x]>USBdrive uses.

I don't think there's anything prebuilt for this so I'll just have to
rebuild [x]>USBdrive to do what I need. The buffer seems to start at
the beginning of memory (0) and extend to HERE.

Thanks, Joel
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Joel Reymont

unread,
Feb 1, 2009, 4:53:30 PM2/1/09
to seaf...@googlegroups.com

On Feb 1, 2009, at 7:33 PM, Michael Montvelishsky wrote:

> make sure you use most recent VF (http://207.47.34.108/download/index.html
> )

Got it! Are the changes from previous release described somewhere?

> I never built vfl. I use full sf or gforth ti run vf.


Stupid question... How do you do this? There's no vf.f in my
distribution!

Joel Reymont

unread,
Feb 1, 2009, 4:54:22 PM2/1/09
to seaf...@googlegroups.com
And I don't have xload either :-(.

On Feb 1, 2009, at 7:33 PM, Michael Montvelishsky wrote:

>> What is the matching xload?
>
> It parses file name to save, like:
>
> xload filename.bin

Joel Reymont

unread,
Feb 1, 2009, 5:26:57 PM2/1/09
to seaf...@googlegroups.com
Michael,

How do I load the data saved by xsave so that it appears as if it has
been compiled?

I'd like to "xload ..." and then do "[x] ... [x]>USBDrive ...".

That is unless I can just run vf within sf like you said you are doing.

Dennis Ruffer

unread,
Feb 2, 2009, 7:43:58 AM2/2/09
to seaf...@googlegroups.com
On Sun, Feb 1, 2009 at 4:26 PM, Joel Reymont <joe...@gmail.com> wrote:
>
> Michael,
>
> How do I load the data saved by xsave so that it appears as if it has
> been compiled?
>
> I'd like to "xload ..." and then do "[x] ... [x]>USBDrive ...".
>
> That is unless I can just run vf within sf like you said you are doing.

It looks like you and Michael were busy last night. I wonder if that
means he's on that side of the world right now, or just staying up
late. ;)

Anyway, xload would just be the reverse of xsave, that he gave you
code for, but there are other pointers, beyond the memory image
itself, that would need to be restored too. Much better to just
recompile it from the source. Look at my vf-plugins stuff to see how
I do it with gforth. The 1st file to load is vf/HostConfig.f, but you
need some missing words 1st. The vf/gforth.fs has what is needed for
gforth, but you would need the equivalent for your version of sf. Let
me know if I can help, but I would need to have your sf or your driver
before I could do much.

Not sure what your plans are to release your work, but I'd love to be
a alpha/beta tester. ;)

> ---
> http://tinyco.de
> --- Mac & iPhone

DaR

Joel Reymont

unread,
Feb 2, 2009, 9:31:30 AM2/2/09
to seaf...@googlegroups.com

On Feb 2, 2009, at 12:43 PM, Dennis Ruffer wrote:

> Not sure what your plans are to release your work, but I'd love to be
> a alpha/beta tester. ;)


You don't have an Intel Mac Dennis ;-). And I didn't bother with PPC.

My plans are to release the code under a non-commercial open source
license. I hope to recoup the time I spent or maybe even make a little
money from commercial licensing.

Dennis Ruffer

unread,
Feb 2, 2009, 11:09:02 AM2/2/09
to seaf...@googlegroups.com
On Mon, Feb 2, 2009 at 8:31 AM, Joel Reymont <joe...@gmail.com> wrote:
> On Feb 2, 2009, at 12:43 PM, Dennis Ruffer wrote:
>
>> Not sure what your plans are to release your work, but I'd love to be
>> a alpha/beta tester. ;)
>
>
> You don't have an Intel Mac Dennis ;-). And I didn't bother with PPC.

It was my PPC that died. My wife has an Intel Mini that she lets me
borrow if I'm real nice to her. ;)
I also have a G5 tower which is simi-functional, if I need to do some
PPC testing.

> My plans are to release the code under a non-commercial open source
> license. I hope to recoup the time I spent or maybe even make a little
> money from commercial licensing.

It's a pretty small market to make much money on, but I wish you the
best of luck.

Once I see your code, I will probably be able to give you the gforth
alterations to increase the appeal slightly.

> ---
> http://tinyco.de
> --- Mac & iPhone

DaR

Joel Reymont

unread,
Feb 2, 2009, 11:12:38 AM2/2/09
to seaf...@googlegroups.com

On Feb 2, 2009, at 4:09 PM, Dennis Ruffer wrote:

> Once I see your code, I will probably be able to give you the gforth
> alterations to increase the appeal slightly.


I doubt you will be able to give any gforth alterations to the c++ mac
iokit driver :D.

The rest is simple.

Dennis Ruffer

unread,
Feb 2, 2009, 1:00:22 PM2/2/09
to seaf...@googlegroups.com
On Mon, Feb 2, 2009 at 10:12 AM, Joel Reymont <joe...@gmail.com> wrote:
> On Feb 2, 2009, at 4:09 PM, Dennis Ruffer wrote:
>
>> Once I see your code, I will probably be able to give you the gforth
>> alterations to increase the appeal slightly.
>
>
> I doubt you will be able to give any gforth alterations to the c++ mac
> iokit driver :D.
>
> The rest is simple.

We will see. ;)

> ---
> http://tinyco.de
> --- Mac & iPhone

DaR

Reply all
Reply to author
Forward
0 new messages