[Mono-list] Can't get Ahead-Of-Time compilation working

LKeene lionel.keene at gmail.com
Wed Sep 30 13:26:14 EDT 2009


Sorry for being a bother folks, but I'm finding all of this a little
confusing. I'm a "Windows only" guy and I still don't understand what the
steps are to perform AOT using Mono on Mac. My app is pure WinForms and I'm
running a VS2008-generated binary on the Mono platform when running my app
on Linux or OSX. I know next to nothing about OSX / Linux and have been
relying on others to install Mono on their machines and run my app whenever
I need to test a new build. The Linux performance is good enough with JIT,
but the OSX performance is a little slow so I was hoping that AOT would help
here. My app is also doing a ton of startup stuff, so AOT would hopefully
help there too.

My understanding is that if I want to make use of the AOT feature, I first
precompile the app using "mono --aot -O=all MyApp.exe". Then I invoke the
precompiled app via "mono MyApp.exe.so SomeCommandLineArgumentMyAppNeeds".
Is all this correct?

I'm doing all of my development on a Windows 7 box, but I suppose that in
order to perform a full AOT for OSX I need to perform the above steps on OSX
which, according to Apple, has Xcode installed by default? Is there anything
else that needs to be installed on the OSX box other than Mono itself in
order to get this working? I'm really only interested in AOT on OSX, not
Linux.

Again, sorry for all the questions, but the documentation is just not doing
it for me. I really appreciate all the help.

-L



Michael B. Trausch-3 wrote:
> 
> On Mon, 2009-09-28 at 11:22 -0700, LKeene wrote:
>> Thanks for trying to help Michael, but...the "as" assembler program?
>>  I'm sorry but I've never heard of this. What is it / where can I find
>>  it? I've found another thread where someone says that I need to
>>  download / install mingw, but this seems strange as it's a compiler
>>  for native Windows?
>> 
>> Actually, let me ask another question first as this is a potential
>>  showstopper: can I AOT my app for OSX execution?
> 
> 'as' is the native assembler utility.  On many systems, this is the GNU
> assembler (also known as 'gas').  The GNU assembler is part of the
> 'binutils' GNU package (which is simply called 'binutils' on many
> systems).
> 
> 	--- Mike
> 
> -- 
> Blog:  http://mike.trausch.us/blog/
> Misc. Software:  http://mike.trausch.us/software/
> 
> “The greater danger for most of us lies not in setting our aim too
> high and falling short; but in setting our aim too low, and achieving
> our mark.” —Michelangelo
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Can%27t-get-Ahead-Of-Time-compilation-working-tp25649921p25685439.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list