没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Porting the .NET Micro Framework
A Microsoft Technical White Paper
December 10, 2007
Abstract
If you are planning to develop a small device or a hardware platform for small devices, consider basing it
on the Microsoft .NET Micro Framework. The .NET Micro Framework not only inherits the hardware-
independence of .NET, it includes two abstraction layers that further isolate applications from hardware
details. This makes it straightforward for board makers, device makers, and developers of Windows
SideShow-capable devices to port the .NET Micro Framework to new hardware platforms.
This white paper introduces the .NET Micro Framework architecture with a view toward porting it to a
new hardware platform. It then discusses the essentials of the porting process, including the structure of
the .NET Micro Framework Porting Kit, the required skill sets, estimates for resource commitments, and
contacts for obtaining more information on signing a porting agreement or finding a porting specialist.
Legal
The information in this document represents the current view of Microsoft Corporation on the issues
discussed as of the date of publication. It should not be interpreted to be a commitment on the part of
Microsoft, and Microsoft cannot guarantee the accuracy of any information presented after the date of
publication.
This White Paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS,
IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
Without limiting fair use rights, no part of this document may be reproduced, stored in or introduced
into a retrieval system, or transmitted in any form or by any means (electronic, mechanical,
photocopying, recording, or otherwise), or for any purpose, without the express written permission of
Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property
rights covering subject matter in this document. Except as expressly provided in a written license
agreement from Microsoft, this document does not give you any license to these patents, trademarks,
copyrights, or other intellectual property.
© 2007 Microsoft Corporation. All rights reserved.
Microsoft, .NET, Visual Studio, and Windows are either registered trademarks or trademarks of
Microsoft Corporation in the United States and/or other countries. The names of other companies and
products mentioned may be trademarks of their respective owners.
Table of Contents
1. The Portable .NET Micro Framework ............................................................................................ 1
.NET Micro Framework Architecture ...................................................................................................... 2
Device Firmware, the SDK, and the Porting Kit ...................................................................................... 3
Managed Drivers .................................................................................................................................... 4
2. Before You Port ........................................................................................................................... 5
Who Should Port .................................................................................................................................... 5
Development Ecosystem and Porting Roles ........................................................................................... 6
Porting Scope .......................................................................................................................................... 6
Staff Requirements ................................................................................................................................. 7
Tool Requirements ................................................................................................................................. 7
Porting Specialists................................................................................................................................... 7
Porting Training and Support ................................................................................................................. 8
3. Porting Essentials ......................................................................................................................... 9
Porting Directly Onto Hardware ............................................................................................................. 9
Porting Onto an Operating System ...................................................................................................... 10
Processor Considerations ..................................................................................................................... 11
Hardware Abstraction Layer APIs ......................................................................................................... 11
Platform Abstraction Layer APIs ........................................................................................................... 12
Memory Layout .................................................................................................................................... 12
Persistent Storage ................................................................................................................................ 13
Bootstrapping ....................................................................................................................................... 14
Asynchronous Procedure Calls and Timers .......................................................................................... 14
Power Conservation ............................................................................................................................. 14
Hardware Providers .............................................................................................................................. 15
Emulator Components ......................................................................................................................... 15
4. Taking the Next Step .................................................................................................................. 16
Additional Resources ............................................................................................................................ 16
Porting the .NET Micro Framework 1
1
The Portable .NET Micro Framework
The .NET Micro Framework is a new execution model for extremely small, resource-constrained devices.
It brings the advantages of .NET—the security and reliability of managed code, the ease of development
in Visual Studio, and the power of the C# language and the .NET libraries—to an smaller class of device
than Microsoft has ever targeted before. To put this in perspective, the .NET Micro Framework is about
one fortieth the size of the smallest managed configuration of Windows CE. The footprint of the .NET
Micro Framework is a few hundred kilobytes rather than several megabytes.
Another characteristic of .NET, often overlooked because most .NET applications are developed on and
run on some flavor of Windows, is hardware-independence. Traditionally, embedded software has been
tightly coupled to the hardware on which it runs. In .NET, however, applications are compiled to an
intermediate language (IL) rather than to machine code, then are executed by a virtual machine called
the .NET Common Language Runtime (CLR).
Rather than starting with an existing .NET platform and trying to slim it down, Microsoft re-imagined
.NET as it might look on a device with only a few hundred kilobytes of RAM. The .NET Micro Framework
CLR was built from scratch to ECMA specifications and is not derived from any prior implementation.
The .NET Micro Framework not only inherits the concept of the CLR, it incorporates two abstraction
layers that help to further isolate applications from the hardware. Separating the hardware-dependent
code from the application code allows the .NET Micro Framework to provide great flexibility in hardware
selection and increases potential for code reuse from one device to the next.
In addition to the CLR, the .NET Micro Framework also provides tight Visual Studio integration (including
the ability to deploy managed code to a device and debug it while it’s running there) and an extensible
emulator that lets developers run and test their embedded applications right on their desktop PCs.
剩余18页未读,继续阅读
资源评论
- WYsunshine2013-11-21有的晕!呵呵,因为是英文的,看起来头大
- sadsada322012-09-30就是看的有点晕晕糊糊内容比较详尽,
- cxq889982015-06-03内容比较详尽,谢谢分享!
- changning1962012-05-08内容比较详尽,就是看的有点晕晕糊糊
bluesea725
- 粉丝: 36
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功