1、IDE 百科名片IDE(Integrated Development,集成开发环境)。其缩写形式 IDE 同时也代指“电子集成驱动器” 。IDE 集成开发环境(简称 IDE)软件是用于程序开发环境的应用程序,一般包括代码编辑器、编译器、调试器和图形用户界面工具。该程序可以独立运行,也可以和其它程序并用。例如,BASIC 语言在微软办公软件中可以使用,可以在微软 Word 文档中编写 WordBasic 程序。IDE 为用户使用 Visual Basic、Java 和 PowerBuilder 等现代编程语言提供了方便.IDE 多被用于开发 HTML 应用软件。 目录隐藏集成开发环境 电子集成驱
2、动器 PIDE 硬盘 IDE 控制器工作原理 IDE 接口 原意 英文缩写 主机适配器 集成开发环境电子集成驱动器PIDE 硬盘IDE 控制器工作原理IDE 接口 原意英文缩写主机适配器 数据线缆 主设备与从设备 结语 英文资料编辑本段集成开发环境集成开发环境(简称 IDE)软件是用于程序开发环境的应用程序,一般包括代码编辑器、编译器、调试器和图形用户界面工具。就是集成了代码编写功能、分析功能、编译功能、debug 功能等一体化的开发软件套。所有具备这一特性的软件或者软件套(组)都可以叫做 IDE。如微软的 VisualStudio 系列,Borland 的 C+Builder,Delphi
3、系列等。该程序可以独立运行,也可以和其它程序并用。例如,BASIC 语言在微软办公软件中可以使用,可以在微软 Word文档中编写 WordBasic 程序。IDE 为用户使用 VisualBasic、Java和 PowerBuilder 等现代编程语言提供了方便。不同的技术体系有不同的 IDE。比如可以称为 C+、VB、C#等语言的集成开发环境,所以可以叫做 IDE。同样,Borland 的 JBuilder 也是一个 IDE,它是 Java 的 IDE。zendstudio、editplus、ultraedit 这些,每一个都具备基本的编码、调试功能,所以每一个都可以称作 IDE。 IDE
4、多被用于开发 HTML 应用软件。例如,许多人在设计网站时使用 IDE(如 HomeSite、DreamWeaver、FrontPage,等等) ,因为很多项任务会自动生成。IDE 集成代码编辑,代码生成,界面设计,调试,编译等功能,目前还融合了建模功能。 编辑本段电子集成驱动器它的本意是指把“硬盘控制器”与“盘体”集成在一起的硬盘驱动器。把盘体与控制器集成在一起的做法减少了硬盘接口的电缆数目与长度,数据传输的可靠性得到了增强,硬盘制造起来变得更容易,因为硬盘生产厂商不需要再担心自己的硬盘是否与其它厂商生产的控制器兼容。对用户而言,硬盘安装起来也更为方便。IDE这一接口技术从诞生至今就一直在不
5、断发展,性能也不断的提高,其拥有的价格低廉、兼容性强的特点,为其造就了其它类型硬盘无法替代的地位。 IDE 代表着硬盘的一种类型,但在实际的应用中,人们也习惯用 IDE 来称呼最早出现 IDE 类型硬盘 ATA-1,这种类型的接口随着接口技术的发展已经被淘汰了,而其后发展分支出更多类型的硬盘接口,比如 ATA、UltraATA、DMA、UltraDMA 等接口都属于 IDE 硬盘。 编辑本段PIDE 硬盘PIDE 硬盘的传输模式有以下三种:PIO(ProgrammedI/O)模式、DMA(DirectMemoryAccess)模式、UltraDMA(简称 UDMA)模式。 PIO(Progra
6、mmedI/O)模式的最大弊端是耗用极大量的 CPU 资源。以 PIO 模式运行的 IDE 接口,数据传输率达 3.3MB/s(PIOmode0)-16.6MB/s(PIOmode4)不等。 PDMA(DirectMemoryAccess)模式分为 Single-WordDMA 及 Multi-WordDMA 两种。Single-WordDMA 模式的最高传输率达 8.33MB/s,Multi-WordDMA(DoubleWord)则可达 16.66MB/s。 PDMA 模式同 PIO 模式的最大区别是:DMA 模式并不用过分依赖 CPU 的指令而运行,可达到节省处理器运行资源的效果。但由于
7、UltraDMA 模式 的出现和快速普及,这两个模式立即被 UDMA 所取代。 PUltraDM 模式(简称 UDMA)是 UltraATA 制式下所引用的一个标准,以 16-bitMulti-WordDMA 模式作为基准。UDMA 其中一个优点是它除了拥有 DMA 模式的优点外,更应用了 CRC(CyclicRedundancyCheck)技术,加强了资料在传送过程中侦错及除错方面的效能。 P 自 UltraATA 标准推行以来,其接口便应用了 DDR(DoubleDataRate)技术将传输的速度提升了一倍,目前已发展到 UltraATA/100了,其传输速度高达 100MB/s。 编辑本
8、段IDE 控制器工作原理无论你用计算机做什么,存储系统都是整个系统的一个重要组成部分。实际上,大多数个人电脑都有一个或者多个诸如硬盘、CD-ROM、DVD 刻录机以及早期像软驱这类存储装置。 通常情况下,这些设备都是通过 IDE(集成设备电路 IntegratedDeviceElectronics 的英文缩写)接口与电脑相连的,IDE 接口是用来连接存储设备和计算机的标准方式。其实“IDE”并不是这项接口技术的真正名称,最初人们管这种接口技术称为“ATAttachment”,即 AdvancedTechnologyAttachment,也就是我们常说的 ATA 接口了,它最初是发展于 IBM
9、的“AdvancedTechnologyPC” 。下面,笔者将带着大家了解 IDE/ATA 的演变和发展、插脚引线的作用和“主/从”的真正含义等基础知识。 编辑本段IDE 接口(Integrated-Drive-Electronics)是现在普遍使用的外部接口,主要接硬盘和光驱。采用 16 位数据并行传送方式,体积小,数据传输快。一个 IDE 接口只能接两个外部设备。 IDE 的英文全称为“Integrated Drive Electronics” ,即“电子集成驱动器” ,它的本意是指把“硬盘控制器”与“盘体”集成在一起的硬盘驱动器。把盘体与控制器集成在一起的做法减少了硬盘接口的电缆数目与长
10、度,数据传输的可靠性得到了增强,硬盘制造起来变得更容易,因为硬盘生产厂商不需要再担心自己的硬盘是否与其它厂商生产的控制器兼容。对用户而言,硬盘安装起来也更为方便。IDE 这一接口技术从诞生至今就一直在不断发展,性能也不断的提高,其拥有的价格低廉、兼容性强的特点,为其造就了其它类型硬盘无法替代的地位。 发展过程早期的 IDE 接口有两种传输模式,一个是 PIO(Programming I/O)模式,另一个是 DMA(Direct Memory Access) 。虽然 DMA 模式系统资源占用少,但需要额外的驱动程序或设置,因此被接受的程度比较低。后来在对速度要求愈来愈高的情况下,DMA 模式由于
11、执行效率较好,操作系统开始直接支持,而且厂商更推出了愈来愈快的 DMA 模式传输速度标准。而从英特尔的 430TX 芯片组开始,就提供了对 Ultra DMA 33 的支持,提供了最大 33MB/sec 的的数据传输率,以后又很快发展到了 ATA 66,ATA 100 以及迈拓提出的 ATA 133 标准,分别提供 66MB/sec,100MB/sec 以及 133MB/sec 的最大数据传输率。值得注意的是,迈拓提出的 ATA 133 标准并没能获得业界的广泛支持,硬盘厂商中只有迈拓自己才采用 ATA 133 标准,而日立(IBM) ,希捷和西部数据则都采用 ATA 100 标准,芯片组厂商
12、中也只有 VIA,SIS,ALi 以及 nViidia 对次标准提供支持,芯片组厂商中英特尔则只支持 ATA 100 标准。 注意事项各种 IDE 标准都能很好的向下兼容,例如 ATA 133 兼容 ATA 66/100 和 Ultra DMA33,而 ATA 100 也兼容 Ultra DMA 33/66。 要特别注意的是,对 ATA 66 以及以上的 IDE 接口传输标准而言,必须使用专门的 80 芯 IDE 排线,其与普通的 40 芯 IDE 排线相比,增加了40 条地线以提高信号的稳定性。 IDE 代表着硬盘的一种类型,但在实际的应用中,人们也习惯用 IDE 来称呼最早出现 IDE 类
13、型硬盘 ATA-1,这种类型的接口随着接口技术的发展已经被淘汰了,而其后发展分支出更多类型的硬盘接口,比如 ATA、Ultra ATA、DMA、Ultra DMA 等接口都属于 IDE 硬盘。目前硬件接口已经向 SATA 转移,IDE接口迟早会退出舞台。 优缺点IDE 接口优点:价格低廉、兼容性强、性价比高 IDE 接口缺点:数据传输速度慢、线缆长度过短、连接设备少 编辑本段原意ide,石斑鱼。 1 编辑本段英文缩写IDE = Integrated Device Electronics,集成设备电路,一般叫做 IDE 总线,更准确地称为是 ATA。一种 IDE 接口磁盘驱动器接口类型,硬盘和光
14、驱通过 IDE 接口与主板连接。控制器电路就驻留在驱动器中,不再需要单独的适配器卡。 2 IDE = Integrated Development Environment,集成开发环境,可以辅助开发程式的应用软件。 3 IDE = Institut International des Droits de IEnfant,国际儿童权利协会,于 1995 年在瑞士瓦莱州西永市成立。 4 匈牙利政党 IDEIDE = The party of Internet Democracy,匈牙利政党。 5 IDE(Integrated Development Environment,集成开发环境)。其缩写形
15、式 IDE 同时也代指“电子集成驱动器” 。 集成开发环境(简称 IDE)软件是用于程序开发环境的应用程序,一般包括代码编辑器、编译器、调试器和图形用户界面工具。该程序可以独立运行,也可以和其它程序并用。例如,BASIC 语言在微软办公软件中可以使用,可以在微软 Word 文档中编写 WordBasic 程序。IDE 为用户使用 Visual Basic、Java 和 PowerBuilder 等现代编程语言提供了方便。 IDE 多被用于开发 HTML 应用软件。例如,许多人在设计网站时使用 IDE(如 HomeSite、DreamWeaver、FrontPage,等等) ,因为很多项任务会自
16、动生成。 编辑本段主机适配器现在绝大多数的主板都带有 IDE 接口,我们常常听见这种接口被叫作 IDE 控制器,而实际上这是不对的。接口实际上是一个主机适配器,也就是说它提供的是一种连接设备和计算机(主机)的方法。而真正的控制器是位于硬盘上的电路板,这也是它被称为 IDE集成设备电路的原因。 最初 IDE 接口是用来连接硬盘设备的,而后发展成为一种通用接口用来连接软驱、CD-ROM 以及一些磁带备份设备。虽然在内部设备中,IDE 接口非常流行,但它们却极为少有的用于外部设备的连接。 ATA 发展至今经过多次修改和升级,每新一代的接口都建立在前一代标准之上,并保持着向后兼容性。第一代是 ATA-
17、1,就是用于康柏桌面 386 系列的最初的标准规范。它被制定为“主/从”结构。ATA-1 是建立在 ISA96-pin 标准连接器上的附属设备,使用 40 或44pin 的连接器和电缆。在 44pin 方案里,额外多出的 4 个引脚用来向那些没有单独电源接口的设备提供电力支持。另外,ATA-1 同时提供 DMA 和 PIO 两种方式传送信号。ATA-2 常被称为 EIDE(EnhancedIDE)、FastATA 或 FastATA-2,此时 DMA 已经完全执行于这个版本里了,标准 DMA 传输速度已经由 ATA-1 里的 4.16MBps 提升到 16.67MBps 了。ATA-2 还提供
18、对电源管理、PCMCIA 卡和可移动设备的支持,通过标准寻址方法 CHS(柱面、磁头、扇区)支持最高 8.4GB 的硬盘容量。此外,ATA-2 还引入 LBA 方式,这一方法突破了硬盘按照 CHS 方式访问磁盘的老观念,为适应以后硬盘容量的快速增长打下了的良好基础。同时通过不断升级的 BIOS 版本或者第三方软件,能够达到支持最大 137.4GB 的容量。只要你的电脑支持 EIDE,就可以在 CMOS 设置中找到 LBA(LBA,LogicalBlockAddress)或(CHS,Cylinder、Head、Sector)的设置选项。EIDE 支持的硬盘数目也有增加,它允许主板上具有两个插口,
19、每个插口可以分别连接一个主设备和一个从设备,从而可以支持四个 IDE 设备。 随着自我监控检测和 SMART 等技术的介入,IDE 驱动器被设计制造得更加可靠。ATA-3 也增加了密码保护措施来控制存取设备,提供了一个很有意义的安全特性。 ATA-4 融合的最大两个特点就是支持 UltraDMA 和整合了 ATAPI(ATAttachmentProgramInterface)标准。ATAPI 为 CD-ROM、磁带备份机和其它可移动存储设备提供了通用接口。而在此之前,ATAPI是一个完全独立的标准。伴着 ATAPI 的入盟,ATA-4 对可移动介质的支持得到了立竿见影的改善效果,同时 Ultr
20、aDMA 也将 DMA 的数据传输率从原有的 16.67MB/s 提高到了 33.33MB/s。除此之外,在原有的 40pin 的接口和线缆基础上,ATA-4 外加了 40 个引脚,总共 80个,其中的 40 根是地线,分散于标准的 40 根线缆之间用于增强信号质量。ATA-4 也被叫做 UltraDMA、UltraATA 或 UltraATA-33。 相比 ATA-4,ATA-5 主要的升级在于自动侦测设备使用的是何种线缆,40pin 还是 80pin?在使用 80pin 线缆时,UltraDMA 传输率上升为更高的 66.67MB/s。所以 ATA-5 也被称为 UltraATA-66。发
21、展到后来,还出现了 ATA-100/133 两个非正式标准,只是速度有所提升,不过由于硬盘内部传输速度的限制,100/133MBps 只不过是一个标志罢了。 编辑本段数据线缆IDE 设备使用的是扁平带状数据线来相互连接,每一条线都是平齐的位于另一条的旁边,并非捆扎成束。数据线分为 40 股和 80股两种,两头都有一个连接器,并在距离主板 2/3 的距离的位置还有另一个连接器,而且数据线的长度不能超过 46 厘米以保证数据传输的完整性。标准的数据线连接器的颜色应该分为蓝色、黑色和灰色三种。其中蓝色一头连接主板,黑色连接第一个(主)设备,灰色连接第二个(从)设备。沿着线缆的一边有一条不同于数据线颜
22、色的条纹,这是为了方便告诉用户在这一边是第一引脚,以便正确的将数据线插入到设备中去,并且设备厂商还在连接器上下功夫,采取了“防倒插”设计思想,设置了一个卡扣,若线路接反是无法插进去的。 编辑本段主设备与从设备一个单独的 IDE 接口能够支持 2 个设备。一般主板都采用双 IDE 接口,可以提供四个 IDE 设备。因为控制器集成在设备之中,并没有一个全局控制器来判断哪一个设备正在与计算机通话。如果每个设备在单独的接口上工作并不会有多大问题,但在同一线缆上增添第二个设备则会带来一点麻烦。 为了允许两个设备工作在同一数据线上传输数据,IDE 使用了一种特殊的“主/从”结构来解决这一问题。这种结构让一
23、个设备的控制器告诉其它设备什么时候能够向主机发送或从主机接收数据。其实,实现的原理很简单,从设备向主驱动器发出请求,考察其是否正在与主机通话。如果主设备空闲,那么从设备就可以进行连接了;如果主设备正在通话,则发出回应让从设备等待并且适时通知何时能够进行连接。 主机通过连接器上的第 39 号引脚来确定是否存在第二个设备。39 号引脚传送的是一种特殊的信号,叫做 DASP(DriveActive/SlavePresent) ,用来检测设备。 虽然驱动器可以工作在任何一个接口上,但还是建议主设备连接在数据线末端的接口上使用,并且设备上的跳线必须设置在正确的位置上以表明该设备是主设备。从设备必须将设备
24、上的跳线拿去或者更改为特殊的设置,这取决于设备自身。同样,从设备需要连接在数据线中间的那个连接器上面,控制器可以通过跳线的设置位置来确定自己是“主”还是“从” ,这可以告诉设备该如何工作。每个驱动设备的都可以被设置成为“主”或者“从” ,如果只有一个设备,那么它将永远是主驱动设备。 许多设备都带有一个特色的选项开关,称为 CableSelect。配合使用某些主板,这些设备能够自动的配置成为“主”或者“从” 。CableSelect 的工作原理比较简单,一个跳线装置被安放在 CableSelect 开关上。其线缆本身就好像一个 IDE 的数据线,除了第 28 号引脚只连接主设备连接器。当打开计算
25、机电源,IDE 接口沿 28 号引脚发出信号,只有连在主设备连接器上的驱动器才能接收到。如果某一个驱动器接收到信号,则将自己配置为主设备,而没有接收到的则默认配置为从设备了。 编辑本段结语IDE 作为一种通用接口,在计算机发展史上留下了不可磨灭的作用,这种并行线缆目前正逐步被串行 ATA 所取代,可以说 IDE 很好的完成了人们赋予它的使命。许多电脑初学者对于机箱来本就纷繁复杂的连线弄得摸不清头脑,相信通过本文至少对 IDE 接口、设备以及它们如何工作有一个大致的了解,更多的知识需要大家多动手、勤钻研。 编辑本段英文资料Visual Studio Integrated Development
26、Environment (IDE) When you start a new project in Visual Studio .NET, you will see a group of windows opened within the development environment (one possible layout is shown in Figure 3.4). The following subsections describe each of these windows. Figure 3.4. Several windows will be open when you st
27、art a new Visual Studio .NET project. Toolbox Window The Toolbox window contains a list of controls or components that you can drag and drop onto your design surface. The Toolbox window contains several tabs that make different sets of components available, depending on the type of designer active i
28、n the editor window (the window in the middle of the environment). If you are designing a Windows Form, you will get a specific set of tools that work with Windows Forms. If you are designing a Web Form, you will get a specific set of tools for working with Web Forms. If you are designing an XML doc
29、ument, there will be other options you can choose. To view the Toolbox window, select View, Toolbox from the Visual Studio .NET menu bar. Figure 3.5 shows the Toolbox window displaying controls available on Windows Forms. Figure 3.5. The Toolbox holds a list of controls. TIP In addition to providing
30、 the standard tools and tabs that Visual Studio .NET provides, you can add tabs, as well as your own code snippets, to the Toolbox. Right-click the Toolbox window to add or delete tabs. You can drag code from the code editor onto the Toolbox, as well, for later use. If you wish to customize the list
31、 of tools displayed in the Toolbox window, or if you wish to add any additional .NET components, ActiveX controls, or third-party controls, choose the Tools, Customize Toolbox menu item to display the Customize Toolbox dialog box, as shown in Figure 3.6 and Figure 3.7. Figure 3.6 shows a list of ava
32、ilable COM components, and Figure 3.7 shows the available .NET Framework components. Figure 3.6. Customize Toolbox lets you add COM components to your Toolbox. Figure 3.7. Use Customize Toolbox to choose which .NET Framework components are displayed in the Toolbox window. Solution Explorer Window In
33、 Visual Studio .NET, a solution is a set of one or more projects that are part of the same application. The Solution Explorer window shows you an expandable list of projects, each projects references, and each projects components. If this window is closed, you can open it by selecting the View, Solu
34、tion Explorer menu item. Components may be made up of forms, classes, modules, and any other file types it takes to create your application. Double-click an item in order to edit that item within the IDE. Figure 3.8 shows the Solution Explorer window displaying the contents of a sample Windows appli
35、cation solution. Figure 3.8. The Solution Explorer gives you a graphical representation of all the files that make up your project(s).The Solution Explorer window displays a series of buttons across its top, and these buttons dynamically change based on the item you have selected in the Solution Exp
36、lorer window. Table 3.3 describes some of these buttons, starting with the leftmost and proceeding right. Table 3.3. Buttons on the Solution Explorer Window Button Description View Code Displays the code for the file that has focus in the Solution Explorer View Designer Displays the designer for the
37、 specific file that has focus in the Solution Explorer Refresh Refreshes the Solution Explorer Show All Files Displays all files associated with the project, including files normally hidden by Visual Studio Properties Displays the Properties window, which shows roperties for the selected file Class
38、View Window When you start creating your own classes, you may want to see a list of all the properties and methods available in those classes. You can use the Class View window, as shown in Figure 3.9, to get an overview of these items. You can bring up this win-dow using the View, Class View menu i
39、tem. Once the window is displayed, you can expand each item in the list to see the members of the class. If you choose any of these members, you can right-click and see a menu of actions that apply directly to the definition of that member. Double-click any of the members of the class to display a c
40、ode window with the item definition displayed in the editor. Figure 3.9. The Class View is an excellent way to view all the properties and methods of your classes. Server Explorer Window The Server Explorer window (accessed using the View, Server Explorer menu) allows you to view the various service
41、s available on a particular server. These services include Crystal Services (for working with Crystal Reports), Event Logs, Message Queues, Performance Counters, and SQL Servers. For most of these services, you can drill down and see a list of existing items 梐 nd you can even add new items. You can
42、drag and drop a service from the Server Explorer window, shown in Figure 3.10, onto a design surface so that you can interact with the element programmatically in your application. For example, you can drag a performance counter onto a Web Form and use that component to interact with the counter. Yo
43、u could also drag a database table onto a page, and it will automatically create the necessary “plumbing“ so that you can work with data from that table. Figure 3.10. The Server Explorer window shows a list of servers, Windows services, databases, event logs, and more, available on your server or an
44、y server to which you can attach. Properties Window The Properties window provides a visual means of investigating and altering the properties of any object within the Visual Studio .NET environment. You can display the Properties window using the View, Properties Window menu item. Once this window
45、is visible, you can either view the list alphabetically or categorized by attribute. Some properties within this window can be selected from a list; others allow you to click a button that brings up a dialog box. Still others require you to supply text by typing into a text box. Figure 3.11 shows th
46、e Properties window. Figure 3.11. The Properties window is where you will spend a lot of time. Object Browser Window Similar to the Class View window, the Object Browser window shows you a list of classes and their respective members. The main difference between these two tools is that the Object Br
47、owser allows you to browse all referenced components, not just the components for the current project like the Class View window does. A nice feature of the Object Browser is that it also shows you the full declaration for the method or property. Bring up the Object Browser by using the View, Other
48、indows, Object Browser menu item. Figure 3.12 shows the Object Browser window in use. Figure 3.12. The Object Browser shows you a complete list of all classes, properties, and methods in your project. Task List Window The Task List window displays, among other items, any To Do items that you have en
49、tered in your code. In addition, youll see information about build errors in this window. Bring up the Task List window using the View, Other Windows, Task List menu item. You will then see a window in your design environment similar to the one shown in Figure 3.13. To add a new task, you can click where the window reads “Click here to add a new task,“ or you can add comments in a specific format right in your project code. The default comment that adds to the Task List looks like his: TODO: Write the RepeaterBind procedure here Figure 3.13. Tas