assembly - Mono 'asmonly' option -


i created simple mono executable using monodevelop prints "hello world". wanted try aot 'asmonly' option. so:

[root@localhost debug]# ls abc.exe [root@localhost debug]# mono --aot=full,static,asmonly abc.exe mono ahead of time compiler - compiling assembly /home/alon/projects/abc/abc/bin/debug/abc.exe code: 1538 info: 50 ex info: 114 class info: 30 plt: 5 got info: 105 got info offsets: 24 got: 60 output file: '/home/alon/projects/abc/abc/bin/debug/abc.exe.s'. linking symbol: 'mono_aot_module_abc_info'. compiled 9 out of 9 methods (100%) methods without got slots: 1 (11%) direct calls: 0 (100%) jit time: 1 ms, generation time: 0 ms, assembly+link time: 0 ms. got slot distribution:     class: 1     image: 1     ldstr: 1     interruption_request_flag: 7 [root@localhost debug]# ls abc.exe  abc.exe.s [root@localhost debug]# -o hello_world.o abc.exe.s [root@localhost debug]# ls abc.exe  abc.exe.s  hello_world.o [root@localhost debug]# ld -o hello_world.so hello_world.o ld: warning: cannot find entry symbol _start; defaulting 0000000008049000 [root@localhost debug]# ls abc.exe  abc.exe.s  hello_world.o  hello_world.so [root@localhost debug]# ./hello_world.so segmentation fault (core dumped) [root@localhost debug]#  

why getting segmentation fault? i'm using fedora 12 x64. , "cannot find entry symbol _start" error in ld?

thank you!

aot still requires mono runtime, gc, io-layer, reflection, threading, runtime code generation, etc. precompiles code jit compile , puts in shareable library. "real" entry point start mono runtime still in mono.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -