4 ms·
Rust can meet those requirements, though there may be other ones that you didn’t mention it that would disqualify them. With similar techniques as the C, the sm
by steveklabnik 9y ago
Rust can meet those requirements, though there may be other ones that you didn’t mention it that would disqualify them. With similar techniques as the C, the smallest Rust executable ever produced was 151 bytes.
The CPU architecture is more likely a problem. And, as you say, the stuff that’s not purely a technical requirement. We’ll get there!
- keithnz 9y agosmallest device I program in C has 20 bytes of RAM
- steveklabnik 9y agoWhat device is that, and what do you do with it? Just curious.
- keithnz 9y agosorry, the device itself has 25 bytes :) But I was left with 20 for program logic. http://ww1.microchip.com/downloads/en/DeviceDoc/41236D.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/41236D.pdf PIC12F508. It did a number of things. It had logic for controlling power on a low power device, coordinating between a number of other micros. It also acted as a last ditch watchdog system that triggered a recovery of the device
- steveklabnik 9y agoThanks, neat!
- pjmlp 9y agoThose PICs can also be targeted with Basic and Pascal, so that you get an idea of the competition. :) https://www.mikroe.com/mikropascal-pic https://www.mikroe.com/mikropascal-pic https://www.mikroe.com/mikrobasic-pic https://www.mikroe.com/mikrobasic-pic