ram, rom and flash

一个帖子关于它们三个的,感觉理解明白了。


那么,什么是RAM,ROM和Flash呢?尽管他们都是计算机内存的一种形式,但是RAM,ROM,FLASH它们三个都以各自的方式和他们存储的数据进行交互。下面对每种内存有一个简短的说明。

RAM:表示随机访问内存(randomaccess memory):微处理器可以读写访问的内存。当我们创建一些东西时,它是在内存中完成的。RAM是内存,反之亦然。

ROM:表示只读内存:微处理器可以读ROM,但是不能写入或修改。ROM是永久性的。ROM芯片经常保存一些重要且永不改变的特殊计算机指令。无论何时,微处理器都可以访问到存储在ROM上的信息。因为这些指令不可被擦出,所以他们保存在ROM中。

Flash Memory:是一种兼具RAM和ROM二者性质的特殊内存。我们可以像操作RAM一样,向Flash 内存写入数据;但是它又像ROM一样,数据在掉电时不丢失。悲剧的是,Flash 内存没有RAM那么快,所以任何时候都不要指望它能取代标准的计算机内存。


http://www.dummies.com/how-to/content/ram-rom-and-flash-memory.html
ram, rom and flash
http://www.ehow.com/about_6398451_difference-between-flash-memory-ram.html
ram flash work
http://www.ehow.com/facts_6917638_difference-hard-disk-flash-memory_.html
flash disk work


Certainly! This segment is defining a memory region named "ram" using the following syntax: ``` .ram : { *(.ram_code) } > RAM AT > ROM ``` Here's what each part of this syntax means: `.ram` is the name of the memory region being defined. This name can be anything, but it's common to use names like "ram", "rom", "flash", etc. to match the physical memory type being used. The colon `:` separates the region name from the memory region's definition. The curly braces `{}` enclose the list of memory sections that will be placed in this region. `*(.ram_code)` is a wildcard pattern that matches any section whose name is "ram_code". The `*` means "match any number of characters", and the parentheses `()` group the pattern together. `>` is a symbol that means "place the following content in the specified memory region". `RAM` is the memory region where the content will be placed. This is a memory region defined elsewhere in the linker script. `AT` is a keyword that defines the starting address of the memory region. In this case, the content will start at the beginning of the "RAM" region. `ROM` is the memory region where the linker will place this entire memory region (in this case, "ram") in the final executable. This is also a memory region defined elsewhere in the linker script. So, in summary, this segment defines a memory region named "ram" that will contain any sections with the name "ram_code". The content of this region will be placed in the "RAM" memory region starting at the beginning of that region, and the entire "ram" memory region will be placed in the "ROM" memory region in the final executable.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值