Tuesday 15 May 2012

c# - Is it possible to force launch mono runtime on x86? -



c# - Is it possible to force launch mono runtime on x86? -

i have simple program:

using system; public class programme { public static void main() { console.writeline(intptr.size); } }

let's build mono compiler x86 application , run on x64 mono:

$ uname -srvmpio ; lsb_release -d linux 3.13.0-32-generic #57-ubuntu smp tue jul 15 03:51:08 utc 2014 x86_64 x86_64 x86_64 gnu/linux description: ubuntu 14.04.1 lts $ mono --version mono jit compiler version 3.10.0 (tarball mon oct 27 14:33:41 ist 2014) copyright (c) 2002-2014 novell, inc, xamarin inc , contributors. www.mono-project.com tls: __thread sigsegv: altstack notifications: epoll architecture: amd64 disabled: none misc: softdebug llvm: supported, not enabled. gc: sgen $ mcs -platform:x86 program.cs $ mono program.exe 8

mono has launched program. has launched programme x64 application. if run binary file on windows microsoft .net runtime, 4 in console output (it run x86 application). so, possible forcefulness launch mono runtime x86?

the -platform:x86 flag compiler. has no bearing on memory space allocated programme mono runtime. if want run programs 64 bits utilize 64 bits mono runtime. if want run programs 32 bits utilize 32 bits mono runtime.

this question duplicate of mono interop: loading 32bit shared library not work on 64bit system

c# .net mono x86 64bit

No comments:

Post a Comment