sundeepblue

Computer Graphics, CAGD, Demoscene, intro [crack each line of code, cram each bit of byte, create each idea of mind]

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2007年8月7日

摘要: Introduction Inline Assembly is different in VC++ and gcc. VC uses Intel syntax while gcc uses AT&T syntax. Here we define the difference in syntax of AT&T and Intel's assembly. Source and Destination Ordering In AT&T syntax the source is always on the left, and the destination is always on the right which is opposite of the Intel's syntax. AT&T Intel Move ebx to eax movl %ebx, %eax mov eax, ebx Move 100 to ebx Movl $100, %ebx Mov ebx, 100 Pref 阅读全文
posted @ 2007-08-07 22:24 sundeepblue 阅读(791) 评论(1) 推荐(0) 编辑

摘要: 概述 —— 什么是makefile?或许很多Winodws的程序员都不知道这个东西,因为那些Windows的IDE都为你做了这个工作,但我觉得要作一个好的和professional的程序员,makefile还是要懂。这就好像现在有这么多的HTML的编辑器,但如果你想成为一个专业人士,你还是要了解HTML的标识的含义。特别在Unix下的软件编译,你就不能不自己写makefile了,会不会写makefile,从一个侧面说明了一个人是否具备完成大型工程的能力。 因为,makefile关系到了整个工程的编译规则。一个工程中的源文件不计数,其按类型、功能、模块分别放在若干个目录中,makefile定义了一系列的规则来指定,哪些文件需要先编译,哪些文件需要后编译,哪些文件需要重新编译,甚至于进行更复杂的功能操作,因为makefile就像一个Shell脚本一样,其中也可以执行操作系统的命令。 阅读全文
posted @ 2007-08-07 21:46 sundeepblue 阅读(221) 评论(0) 推荐(0) 编辑