A couple of questions
Gabor Szokoli
gabor.szokoli at vanderbilt.edu
Mon Jan 28 16:52:27 CET 2002
From: "Denys Duchier" <Denys.Duchier at ps.uni-sb.de>
> gabor.szokoli at vanderbilt.edu (Gabor Szokoli) writes:
>
> > I was just asking for encouragement, but if you insist :-)
>
> no, no, no... you can get encouragement _free_ with every
subscription!
I'd like it in the form of "I've heard of someone who saw some who
compiled the Investigator on w2k..." please.
> > During "make bootstrap" it looks like I can not link against
> > emulator.dll:
>
> yep, more symbols need to be explicitly exported. In mozart.h this
is
> done using macro `ozdeclspec'. Clearly, this has to be done for
more
> symbols. If you figure it out, submit a patch and we'll definitely
> consider it for inclusion in the distribution.
I'm figuring, but:
1, Is there any material on this, like "internals of oztool" or "the
Mozart architecture"?
2, don't you mean the _FUNDECL and _FUNTYPEDECL macros?
3, does it matter that said symbols are not present in emulator.def?
Or is that how they'll get there? (Aha! I might be slow, but I've got
potential :-) )
(dlltool --export-all-symbols emulator.dll allows me one step furter,
now with the full emulator.def file I get:
Warning: resolving __StaticNameTable by linking to
__imp___StaticNameTable (auto-import)
builtins.o(.text+0x666):builtins.cc: variable '_StaticNameTable' can't
be auto-imported. Please read the documentation for
ld's --enable-auto-import for details.
...)
4, Have these symbols ever been available like that? If not, how could
this ever be linked??
if yes, what version? May I just merge from there for half as many
credits? :-)
(I hope your university has the credit system too :-) )
5, The first missing symbol is oz_addSuspendVarList (unsigned int *).
It is used as OZ_Term *. It is declared in am.hh as TaggedRef or
TaggedRef*. I tried lots of combinatoins, but none works. Could you
give me an example, what to put in mozart.h to have this symbol
properly exported? I wasted the whole weekend experimenting... :-/
> > [szocske at micc /proc]$ gcc -v
> > Reading specs from
> > /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
>
> 2.91??? That was released on March 15, 1999. It is probably way too
> ancient for the current release of Mozart. I don't even want to
> speculate on what might go wrong and we don't have the manpower to
do
> archeological debugging :-)
How about alignment scheme change? :-)
I'll probably just install a brand new linux somewhere instead.
And one more thing: oztool claims it can handle msvc. Can msvc handle
all the fancy stuff in the mozart source like goto-label aritmetics or
tail recursion detection?
Thanks for all the help:
Gabor Szokoli
www.isis.vanderbilt.edu
-
Please send submissions to users at mozart-oz.org
and administriva mail to users-request at mozart-oz.org.
The Mozart Oz web site is at http://www.mozart-oz.org/.
More information about the mozart-users
mailing list