Chinaunix首页 | 论坛 | 博客
  • 博客访问: 233637
  • 博文数量: 34
  • 博客积分: 1131
  • 博客等级: 准尉
  • 技术积分: 320
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-09 12:16
个人简介

文章分类
文章存档

2012年(22)

2011年(12)

分类: LINUX

2012-08-20 22:48:04

(or, "Size Is Everything")

She studied it carefully for about 15 minutes. Finally, she spoke. "There's something written on here," she said, frowning, "but it's really teensy."

[Dave Barry, "The Columnist's Caper"]

If you're a programmer who's become fed up with software bloat, then may you find herein the perfect antidote.

This document explores methods for squeezing excess bytes out of simple programs. (Of course, the more practical purpose of this document is to describe a few of the inner workings of the ELF file format and the Linux operating system. But hopefully you can also learn something about how to make really teensy ELF executables in the process.)

Please note that the information and examples given here are, for the most part, specific to ELF executables on a Linux platform running under an Intel-386 architecture. I imagine that a good bit of the information is applicable to other ELF-based Unices, but my experiences with such are too limited for me to say with certainty.

Please also note that if you aren't a little bit familiar with assembly code, you may find parts of this document sort of hard to follow. (The assembly code that appears in this document is written using Nasm; see .)

阅读(1807) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~