亿美短信开发实例后台代码
来源:互联网 发布:淘宝页头招牌怎么修改 编辑:程序博客网 时间:2024/05/01 13:17
The latest issue cost me for nearly 5 days or even more.
[ Issue ]
I want to write a bootloader with C language, using gcc & nasm. As known, gcc can only generate ELF format binaries. So I use objcopy to transform the file formats: from ELF to plain text binaries. But some really weird problem happened : the function offset mismatching, unexpected asm instructions...
[ How I solve the problem ]
1. I tried several different parameters for the tools, especially gcc and ld.
2. I digged into the disassembled sources of all the binaries. And then I found key.
3. I found GCC, LD & objcopy all worked OK, while the machine translated the binary by mistakes.
4. Then I searched for Internet: ELF is actually a 32-bit binary format, while bootloader(before entering Protected mode) executes under a 16-bit environment.
[ Solution ]
Before entering the Protected mode, 32-bit GNU tools cannot be used.(as86, ld86 are out of range).
[ Appendix ]
http://www.delorie.com/djgpp/16bit/gcc/
Check this site, a geek has built a 16-bit GCC, not elegantly, though :)
- 亿美短信开发实例后台代码
- SP 短信开发-PROVISION接口实现-反向取消实例代码
- SP 短信开发-PROVISION接口实现-正向订购实例代码
- mkhl后台开发实例
- 面向短信接口开发实例
- 2017美团北京java后台开发
- 发送短信工具类(亿美短信平台接口)
- 发送短信工具类(亿美短信平台接口)
- MAGENTO 后台模块开发实例
- ASP.NET(VB)写的后台发送短信代码
- 开发那点事系列一 - 代码美,人生美!
- 美团大众点评面试经验——后台开发
- 美团点评后台开发实习记(持续更新)
- 2017年美团校招后台开发部分题解
- c语言短信猫开发代码
- MVVM开发,前台代码,后台代码
- iphone 开发实例代码
- nodejs 后台开发 和C++代码开发
- 报表数据模型初探(一)
- BGAN互联网“黑白名单”服务控制系统解决方案
- 产品自动化测试的误区
- MFC 编译连接时产生错误及解决办法
- 春晓(贰)
- 亿美短信开发实例后台代码
- 我的框架(1)
- 我的框架(2)
- 如何在已经安装linux情况下安装windows---by whale
- 在asp.net网页中实现tabPage功能(下)
- 我的框架(3)
- Glest(开源RTS游戏)编译备忘
- 我的框架(4)
- 我的框架(5)