A Preliminary Study on Mono program reduction

Source: Internet
Author: User

After a long period of attention, I ran the C # program out of the Framework, and became interested in a variety of indifferent technologies. I happened to use an online player i264player and found that it was running under the mono framework, however, after careful cutting by developers, it is very good to run in windows, thanks to other streamlined mono operations. net Program, combined with the actual situation, the i264player program is analyzed, and finally a framework package similar to the flying letter virtual framework is obtained for everyone to leave the framework.

Directory structure of the i264player Program

As you can see, the main directory includes three parts:

Bin: saves the basic file for mono runtime.

ETC: stores the basic startup parameters and startup program information.

Lib: stores the running library files and mono libraries.

The main program is i246player.exeunder the root directory. After analysis, the function of this file is dependent on the mono.exe program and is a startup entry,

Start the program by reading bootstarpper and bootstrapperdesc under the etc directory.

 

Preliminary attempt:

Replace the Lib \ i1_player \ i1_player.exefile with the simple winfromprogram developed by Alibaba, and change the name to the same. The i1_player.exe file in the root directory is successfully loaded.

 

Modify the i264player.exe file in the root directory as another file name. An error is returned.

 

Try to modify the i264player.exe file in the bootstarpperdescdirectory directory with the same name as the file in the root directory.

 

Use the editor (recommended editplus.exe to open i‑player.exe under bootstarpperdesc, and find that a path is saved. After modification, You can execute programs in other directories.

 

Conclusion:

I264player.exe in the root directory reads the corresponding configuration under etc \ bootstarpperdesc, and then calls the program when Mono is started.

 

Purpose:

You can package the program you want to use monogram into a directory. This kind of program can also be very easy to run, eliminating the trouble of writing batch Start Programs for mono.exe.

 

Next step:

I feel that I am still lazy for a long time. As long as C ++ or Delphi understands something, I can directly write local code, so I don't have to worry about these things. I 'd like to study hard.

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.