4 ms·
Overlapping functions... (saves 14 bytes...) Crazy, DNA uses this trick! "-Os" should search for possibilities here.. I'm wondering if such code breaks any C
by jhallenworld 5y ago
Overlapping functions... (saves 14 bytes...)
Crazy, DNA uses this trick!
"-Os" should search for possibilities here..
I'm wondering if such code breaks any CPUs. I could imagine that it could confuse the code translation that modern x86s do. I mean I bet they don't test this particular corner case...
- jart 5y agoThat's cool. I didn't know. It's nice how having fun hacking on boot sectors can help us discover things mother nature figured out a long time ago. Do you have links you could share where I could learn more about dna coding hacks? For example, I've been reading some of the stuff written by Bert Hubert (known for his work on PowerDNS) who got into biology recently and wrote blog posts like this https://berthub.eu/articles/posts/amazing-dna/ https://berthub.eu/articles/posts/amazing-dna/ > These comments are fascinating in their own right. Like C comments they have a start marker, like /*, and a stop marker, like */. But they have some more structure. Remember that DNA is like a tape - the comments need to be snipped out physically! The start of a comment is almost always indicated by the letters ‘GT’, which thus corresponds to /*, the end is signaled by ‘AG’, which is then like */. I don't know a whole lot about biology, but learning cool facts like that makes me wonder what would happen if those comment markers were used as parenthesis.