[Mono-dev] AOT Mono.WebBrowser.dll under ARM Embedded Linux environment problem

Daniel M chookieeee at hotmail.com
Wed Jan 19 06:18:24 EST 2011


Thanks Zoltan.With that i found a lot of the runtime libraries were not loading their AOT version.Load time is down to 6-7 secs now as opposed to 13 secs.I'll dive in to the debug output a little more tomorrow and see what else i can get.Thanks guys,Dan.


Date: Wed, 19 Jan 2011 05:37:39 +0100
Subject: Re: [Mono-dev] AOT Mono.WebBrowser.dll under ARM Embedded Linux environment problem
From: vargaz at gmail.com
To: chookieeee at hotmail.com
CC: kumpera at gmail.com; mono-devel-list at lists.ximian.com

Try running withMONO_LOG_LEVEL=debugthis will print out some log messages about AOT loading, so you can see what is the problem.
                    Zoltan


On Wed, Jan 19, 2011 at 4:49 AM, Daniel M <chookieeee at hotmail.com> wrote:






Hey guys,
I've applied --aot  to the whole mono framework dll's using a simple script i made up.Once done, i ran the app 'mono testapp.exe'... and also 'mono --profile=default:jit testapp.exe'   ... and pretty much appeared no different.
(although the compiled count + resulting time was slightly less -- Total time spent compiling 2924 methods (sec): 11.41 ).
so it seems that it is still running in jit mode or am i missing something? is there a flag i need to set?

thanks again,Dan

Date: Tue, 18 Jan 2011 22:54:48 +0100
Subject: Re: [Mono-dev] AOT Mono.WebBrowser.dll under ARM Embedded Linux environment problem

From: vargaz at gmail.com
To: chookieeee at hotmail.com
CC: kumpera at gmail.com; mono-devel-list at lists.ximian.com


Hi,
  You can speed it up, just don't use the --full-aot argument to the runtime, its probably notneeded in your case.
               Zoltan



On Tue, Jan 18, 2011 at 10:41 PM, Daniel M <chookieeee at hotmail.com> wrote:







Hi Rodrigo,Thanks for your reply.Its more of a test for the moment... we are having speed issues with System.Windows.Forms loading taking so long.

eg. A simple .exe with a form + 1 button took 12 secs to load. Running with --profile=default:jit gave the following info:

Total time spent compiling 2970 methods (sec): 12.6

Slowest method to compile (sec): 0.4277: System.Windows.Forms.ProfessionalColorTable::CalculateColors()Total number of calls: 0

Allocation profilerTotal memory allocated: 0 KB

Objects copied: 0

Processor is ARM9 at 400mhz with 128mb ram (with mono using GTK#).

Trying to see if I can speed this up a bit by using AOT compilation. Any thoughts?Thanks,Dan 



Date: Tue, 18 Jan 2011 13:42:43 +0100
Subject: Re: [Mono-dev] AOT Mono.WebBrowser.dll under ARM Embedded Linux environment problem


From: kumpera at gmail.com
To: chookieeee at hotmail.com
CC: mono-devel-list at lists.ximian.com



Do you really need full aot on your target? It should be avoided when possible since a lot of stuff doesn't work under it.

On Tue, Jan 18, 2011 at 1:17 PM, Daniel M <chookieeee at hotmail.com> wrote:








Hi All,
Wondering if it is possible to AOT just a section of the Mono framework (and ignore parts of the framework i will not use???).
I have mono 2.8 release cross compiled for ARM platform. Attempting to do AOT compilation. Binaries seem to compile fine until I hit the Mono.WebBrowser binary. I get the following two messages on my output repeatedly:





Invoking method 'System.Runtime.InteropServices.InterfaceTypeAttribute:.ctor (System.Runtime.InteropServices.ComInterfaceType)' when running in no-exec mode.



Invoking method 'System.Runtime.InteropServices.GuidAttribute:.ctor (string)' when running in no-exec mode.


I neither have mozilla, gecko, nor webkit on my embedded system, so im assuming the errors are relating to this?? I will never use this DLL, wont need it, so is there a way i can skip it?





When i run my simple windows forms test app:
mono --full-aot testapp.exe
I get the error:
Can't use AOT image '/usr/lib/mono/gac/Mono.WebBrowser/0.5.0.0__0738eb9f132ed756/Mono.WebBrowser.dll.so' in aot-only mode because it is not compiled with --aot=full.





Any help here would be greatly appreciated.
Thanks,
Dan 		 	   		  

_______________________________________________

Mono-devel-list mailing list

Mono-devel-list at lists.ximian.com

http://lists.ximian.com/mailman/listinfo/mono-devel-list



 		 	   		  

_______________________________________________

Mono-devel-list mailing list

Mono-devel-list at lists.ximian.com

http://lists.ximian.com/mailman/listinfo/mono-devel-list



 		 	   		  

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110119/4b4e33b9/attachment.html 


More information about the Mono-devel-list mailing list