Oz and Mozart Hackers Mailing List

RE: Compiling Mozart on Windows - A long term vision


From: Bob Calco (robert.calco@verizon.net)
Date: Wed Oct 30 2002 - 17:13:21 CET


%%
%% > %% We indeed have succeeded in building Mozart
%% > %% with the MSVC compiler, although performance of the resulting
%% > %% system was not competitive with a system built with gcc.
%% >
%% > How much worse was it, and where were the bottlenecks? Knowing this in
%% > advance can give me a jump-start in plotting a strategy to
%% > optimization.
%%
%% It is MUCH worse in the bytecode emulator itself (file emulate.cc)
%% because the efficient implementation uses first class labels supported
%% by gcc in order to realize the good old threaded code technique; when
%% these are not available, it must fall back on a switch statement and
%% that's a great deal slower.

Oh. Oooohhhhh. Uuuugghhhh. That's a problem. Geez, everything you guys do
has to be "first class" doesn't it? Even labels. ;)

Maybe there's another way to wrap the emulator. I can't statically link to
it, because of the disparate name mangling schemes, but I may be able to
dynamically load the functions it exposes, the hard way. A dumpbin reveals a
number of non-mangled symbols, but a bunch of mangled ones as well.

Any thoughts on that alternative? Or will I need access to internals that
simply aren't available through dynamic linking to make a clean connection?
(My guess is this is also like sticking hot coals in my shorts...but maybe
it isn't... maybe all I'm talking about at this level is doing what emacs
does when it creates the compiler, emulator and server processes, that is to
say, I create a component that manages interaction between those processes
(that it controls) and other external processes, through the various
interfaces I'm attempting to expose them.) Maybe some mods to the emulator
to expose things to make this easier is part of the solution. Hmmm.
Thinking.

- Bob

%%
%% Cheers,

"Cheers," he says...

%%
%% --
%% Dr. Denys Duchier Denys.Duchier@ps.uni-sb.de
%% Forschungsbereich Programmiersysteme (Programming Systems Lab)
%% Universitaet des Saarlandes, Geb. 45 http://www.ps.uni-sb.de/~duchier
%% Postfach 15 11 50 Phone: +49 681 302 5618
%% 66041 Saarbruecken, Germany Fax: +49 681 302 5615
%% -
%% Please send submissions to hackers@mozart-oz.org
%% and administriva mail to hackers-request@mozart-oz.org.
%% The Mozart Oz web site is at http://www.mozart-oz.org/.
%%
%%

-
Please send submissions to hackers@mozart-oz.org
and administriva mail to hackers-request@mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.



This archive was generated by hypermail 2b29.