mail-archives/mono-devel-list/2013-June/040569.html

99 строки
4.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [Mono-dev] Mono AOT for 64-bit Windows
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-devel-list%40lists.ximian.com?Subject=Re%3A%20%5BMono-dev%5D%20Mono%20AOT%20for%2064-bit%20Windows&In-Reply-To=%3C1372351979123-4660049.post%40n4.nabble.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="040550.html">
<LINK REL="Next" HREF="040570.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-dev] Mono AOT for 64-bit Windows</H1>
<B>voldemarz</B>
<A HREF="mailto:mono-devel-list%40lists.ximian.com?Subject=Re%3A%20%5BMono-dev%5D%20Mono%20AOT%20for%2064-bit%20Windows&In-Reply-To=%3C1372351979123-4660049.post%40n4.nabble.com%3E"
TITLE="[Mono-dev] Mono AOT for 64-bit Windows">voldemarz at gmail.com
</A><BR>
<I>Thu Jun 27 16:52:59 UTC 2013</I>
<P><UL>
<LI>Previous message: <A HREF="040550.html">[Mono-dev] Mono AOT for 64-bit Windows
</A></li>
<LI>Next message: <A HREF="040570.html">[Mono-dev] Mono AOT for 64-bit Windows
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#40569">[ date ]</a>
<a href="thread.html#40569">[ thread ]</a>
<a href="subject.html#40569">[ subject ]</a>
<a href="author.html#40569">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Thanks for input. By seasoned you mean someone who has good knowledge of Mono
internals or generally a guy with low level experience on various
platforms/architectures?
I slightly modified ASM generation
- wrapped .type and .size within .def/.endef directives
- removed local symbol emission
- removed underscore in front of global symbols
Now I can generate AOT images and runtime seems to find all data structures
it needs. In few first runs surprisingly some simple tests worked
successfully in aot and full-aot mode - console output, simple calculations,
events, catching exceptions, allocating bunch of objects and invoking
garbage collection.
Then I regenerated AOT image of mscorlib and it doesn't work any more.
Trying to figure out issues now. In full-aot mode it crashes after a jump to
a non-executable memory region from function
wrapper_managed_to_native_object___icall_wrapper_mono_object_new_ptrfree_box_intptr
The first few ops after the function prolog look like this (full function
asm here &lt;<A HREF="http://pastebin.com/GfTLeN1e">http://pastebin.com/GfTLeN1e</A>&gt; ):
mov rax,7FACDFD19E0h
mov rcx,qword ptr [rbp-70h]
sub rsp,20h
mov qword ptr [rbp-38h],rsp
call rax
The address loaded into rax looks very suspicios. As far I can see that
function is compiled from IL. Haven't tracked down were is it coming from?
Could someone point me to it? What is it attempting call internally?
--
View this message in context: <A HREF="http://mono.1490590.n4.nabble.com/Mono-AOT-for-64-bit-Windows-tp4659926p4660049.html">http://mono.1490590.n4.nabble.com/Mono-AOT-for-64-bit-Windows-tp4659926p4660049.html</A>
Sent from the Mono - Dev mailing list archive at Nabble.com.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="040550.html">[Mono-dev] Mono AOT for 64-bit Windows
</A></li>
<LI>Next message: <A HREF="040570.html">[Mono-dev] Mono AOT for 64-bit Windows
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#40569">[ date ]</a>
<a href="thread.html#40569">[ thread ]</a>
<a href="subject.html#40569">[ subject ]</a>
<a href="author.html#40569">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-devel-list">More information about the Mono-devel-list
mailing list</a><br>
</body></html>