主题 : UBOOT 给一个栈地址,能用C语言代替汇编写出来吗 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 19986
精华: 0
发帖: 64
金钱: 340 两
威望: 68 点
贡献值: 0 点
综合积分: 128 分
注册时间: 2010-04-25
最后登录: 2017-01-28
楼主  发表于: 2010-05-27 10:57

 UBOOT 给一个栈地址,能用C语言代替汇编写出来吗

UBOOT 给一个栈地址,能用C语言代替汇编写出来吗
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-05-27 12:16

 回 楼主(wjh19870407) 的帖子

可以。事实上,大多数S3C2440A的U-Boot中,NAND Boot模式下把自己从NAND Flash中读取到SDRAM中的代码就是用C写的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."