Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15177628
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: C/C++

2008-05-27 19:47:24

终于将启动和转保护模式调通了。将汇编代码传到了csdn的代码库。后面的路还很长,一切在摸索当中。

下面需要写make文件,要用到连接器,编译器了。

暂定在Linux AS4平台开发。使用nasm,gld和gcc进行编译连接。

意识到资料收集的耗时费力,还是决定将整个过程记录下来。

在“缥缈云水间”的汇编版看到一些nasm的资料:()

工具:

 ,  ,  

GCC:标准C和C++,Java,Fortran等的编译器。自由开源软件。

GNU Binutils:二进制工具集,包括:

  • ld:GNU 连接器
  • as:GNU 汇编器
  • addr2line - Converts addresses into filenames and line numbers.
  • ar - A utility for creating, modifying and extracting from archives.
  • c+filt - Filter to demangle encoded C++ symbols.
  • gprof - Displays profiling information.
  • nlmconv - Converts object code into an NLM.
  • nm - Lists symbols from object files.
  • objcopy - Copys and translates object files.
  • objdump - Displays information from object files.
  • ranlib - Generates an index to the contents of an archive.
  • readelf - Displays information from any ELF format object file.
  • size - Lists the section sizes of an object or archive file.
  • strings - Lists printable strings from files.
  • strip - Discards symbols.
  • windres - A compiler for Windows resource files.

Newlib是用于嵌入式系统的C库

GDB是GNU的调试器。 和  是其GUI版本。

用 看代码。

文档:

  • GDB 文档
  • 阅读(268) | 评论(0) | 转发(0) |
    给主人留下些什么吧!~~