TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A whirlwind tutorial on creating teensy ELF executables for Linux (1999)

59 pointsby xtacy3 months ago

5 comments

ptspts3 months ago
Shameless plug: write your program in C, get almost as little size overhead as in the Whirlwind turorial: <a href="https:&#x2F;&#x2F;github.com&#x2F;pts&#x2F;minilibc686">https:&#x2F;&#x2F;github.com&#x2F;pts&#x2F;minilibc686</a> (libc, compiler, linker, settings)
dang3 months ago
Related. Others?<p><i>A Whirlwind Tutorial on Creating Teensy ELF Executables for Linux</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32524007">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=32524007</a> - Aug 2022 (10 comments)<p><i>A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux (1999)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21846785">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=21846785</a> - Dec 2019 (22 comments)<p><i>A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux (2005)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11709247">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11709247</a> - May 2016 (5 comments)<p><i>Creating Really Teensy ELF Executables for Linux</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8745024">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8745024</a> - Dec 2014 (13 comments)<p><i>The Teensy Files: Creating teensy ELF executables for Linux</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8642734">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=8642734</a> - Nov 2014 (7 comments)<p><i>A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5016434">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=5016434</a> - Jan 2013 (14 comments)<p><i>Tutorial on Creating Really Teensy ELF Executables for Linux</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=875077">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=875077</a> - Oct 2009 (16 comments)<p><i>3998-byte executable reduced to 45 bytes</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=68056">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=68056</a> - Oct 2007 (10 comments)
评论 #42986197 未加载
cryne3 months ago
I tried to replicate this on my 64 bit machine, so<p><pre><code> nasm -f elf64 tiny.s &amp;&amp; ld -s tiny.o ; tiny.asm BITS 64 GLOBAL _start SECTION .text _start: mov eax, 1 mov ebx, 42 int 0x80 </code></pre> and this lands me at 4320 bytes! Why is there such a stark difference?
评论 #42988127 未加载
le-mark3 months ago
Does anyone recall an “intro to computing” style book that was available free online and starts with using the gas assembler and talked a lot about elf format executables? I lost the link a while ago and don’t recall the name.
评论 #42988670 未加载
deater3 months ago
for those excited about tiny ELF executables, or tiny programs in general, check out the Lovebyte size-coding demoparty happening next weekend. It&#x27;s likely there will be a few tiny ELF entries there.
评论 #42987113 未加载
评论 #42988871 未加载