Just thought of a very cheap way to make a compiler for Linux/ELF. Just make 3 or 4 no-op ELF programs with various .text sizes ranging from the smallest possible to the largest you'd conceivably use with your language; then just copy the object code into the binary template that fits most closely. Make each a fixed power-of-two size, like, let's say, 1024, 4096, 65536. This, of course, assumes you don't care about symbol tables or any of the other features of the ELF format.
Still waiting for my customer's server to come back online. This could be the end of my RAC career if it doesn't, whether or not I caused the problem. Well, maybe I'm being overdramatic. More precisely, it could well be the end of my Top Coder rating.
Back to blog or home page
last updated 2013-01-10 20:31:33. served from tektonic