Towards a more stable VM

53 views
Skip to first unread message

talksmall

unread,
May 21, 2008, 7:52:25 AM5/21/08
to Strongtalk-general
As a small step on the path to greater stability for the VM I have
checked in a change to add some unit testing infrastructure to the VC+
+ project. Note that the project is now for VS 2008 Express Edition
(available as a free download from Microsoft).

The testing framework is provided by Easyunit which I have customised
slightly to avoid dependence on the global new operator which
Strongtalk overrides to call fatal() - ie. not to be used. There are
also some minimal unit tests for a couple of issues I came across at
various points (size alignment problem in ReservedSpace, longint
problems under optimized builds).

The VS 2008 solution now consists of four projects - an easyunit
project that builds the framework as a static library; a strongtalk
project that builds everything under vm except runtime\main.cpp into a
static library; a strongtalk-main project that compiles vm\runtim
\main.cpp and links it with the strongtalk static library to produce
the strongtalk-main.exe which is the executable used to run the
application; a strongtalk-test project that compiles a test main and
the unit test files and links these together with the strongtalk
static library to produce an executable which is run at the end of the
build to execute all of the unit tests.

I have updated the build instructions in readme.txt accordingly.

Regards, Steve

Ted Neward

unread,
Aug 23, 2009, 8:37:08 PM8/23/09
to strongtal...@googlegroups.com
Hey all.

I just recently (re)fetched the source from SVN and attempted to build.
After some wrestling with VS 2005, I get the three exe's in the Strongtalk
directory, but when I run, it throws an AccessViolation somewhere deep in
the native code, and no amount of wrestling, tweaking, or adjusting can get
me past that point. Has anyone...
(a) done a complete rebuild from SVN, just to make sure that it's all in a
good state right now, and
(b) got a few minutes to help me figure out just what the hell's going on
with my build?

FWIW, by the way, the SVN revision reports at 162. But in that revision, I
don't see any VS 2008-related bits--everything still says VS 2005. Did the
SVN repo move someplace? Am I grabbing stale bits?

Ted Neward
Java, .NET, XML Services
Consulting, Teaching, Speaking, Writing
http://www.tedneward.com
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.24.0/1459 - Release Date:
> 5/21/2008 5:34 PM
>

talksmall

unread,
Aug 24, 2009, 8:51:48 AM8/24/09
to Strongtalk-general
Hi Ted,
Thanks for trying out Strongtalk.

I took a look at the build instructions and they were certainly out-of-
date. I have put details of the steps you should need take to build
under VS 2008 Express on the Building page on the Wiki which can be
found here - http://code.google.com/p/strongtalk/wiki/Building

To validate these instructions I did a fresh checkout from SVN and
followed the steps described in the updated Wiki page, and all went
smoothly.

Hopefully, you should find them fairly straightforward to follow. If
not, give a shout on the list with some details on the problem and I
will do my best to help.

Regards, Steve

On Aug 24, 1:37 am, "Ted Neward" <ted.new...@gmail.com> wrote:
> Hey all.
>
> I just recently (re)fetched the source from SVN and attempted to build.
> After some wrestling with VS 2005, I get the three exe's in the Strongtalk
> directory, but when I run, it throws an AccessViolation somewhere deep in
> the native code, and no amount of wrestling, tweaking, or adjusting can get
> me past that point. Has anyone...
> (a) done a complete rebuild from SVN, just to make sure that it's all in a
> good state right now, and
> (b) got a few minutes to help me figure out just what the hell's going on
> with my build?
>
> FWIW, by the way, the SVN revision reports at 162. But in that revision, I
> don't see any VS 2008-related bits--everything still says VS 2005. Did the
> SVN repo move someplace? Am I grabbing stale bits?
>
> Ted Neward
> Java, .NET, XML Services
> Consulting, Teaching, Speaking, Writinghttp://www.tedneward.com
Reply all
Reply to author
Forward
0 new messages