简体   繁体   English

QEMU vs Android模拟器:命令行选项

[英]QEMU vs Android emulator: command line options

What are differences regarding command line options between stock QEMU and Android emulator? 普通QEMU和Android仿真器之间的命令行选项有什么区别?

Is there an option that has the same syntax, but works differently between the two? 是否有一个具有相同语法但在两者之间工作方式不同的选项? Or similar gotchas.. 或类似的陷阱

Android emulator is built atop qemu, so basically android emulator inherits all the features from qemu and gets more specific options for android. Android模拟器是建立在qemu之上的,因此基本上,android模拟器继承了qemu的所有功能,并为android提供了更多特定的选项。 From the view of the command line, android emulator is more like a wrapper. 从命令行的角度来看,Android仿真器更像是包装器。 It looks like: 看起来像:

emulator <options-for-android> -qemu <options-for-qemu>

You can refer the code in file main-emulator.c in the folder of android emulator. 您可以在android emulator文件夹中的main-emulator.c文件中引用代码。 In there, you will see that all the options will be parsed and sent to the main function of vl-android.c, which is the entry point of a modified qemu. 在这里,您将看到所有选项都将被解析并发送到vl-android.c的主要功能,该功能是修改后的qemu的入口。

You can also observe which options are given to QEMU with -verbose : How to show which options are passed to QEMU when launching the android emulator? 您还可以使用-verbose观察给QEMU提供了哪些选项启动android仿真器时,如何显示将哪些选项传递给QEMU?

Comparing to qemu-system-x86_64 -help , there are some Android specific options there. qemu-system-x86_64 -help ,那里有一些特定于Android的选项。

The location of the Android emulator source code has been asked at: Modifying Android emulator source code 在以下位置询问了Android模拟器源代码的位置: 修改Android模拟器源代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM