807
Checkmate (lemdro.id)
you are viewing a single comment's thread
view the rest of the comments
[-] Aatube@kbin.melroy.org 41 points 6 months ago* (last edited 6 months ago)

-Oz

Optimize aggressively for size rather than speed.

TIL

[-] xmunk@sh.itjust.works 29 points 6 months ago

It is, honestly, the dumbest of the -O flag option, which is why I picked it. I'm sure there are times when it's useful, but it's nearly never the right choice.

[-] YourAvgMortal@lemmy.world 13 points 6 months ago

Wasm comes to mind, execution time in the browser will probably be ok, but size is a big deal

[-] dan@upvote.au 8 points 6 months ago

Software that runs on embedded systems usually benefits from being small, too.

[-] Thorry84@feddit.nl 4 points 6 months ago

As someone who has worked on embedded systems for the past 30 years: It used to be a real big deal, but for the past 10-15 years it hasn't. We now have fully fledged multi core systems running everything. Even small embedded sensors or actuation controllers are 100+ MHz microcontrollers with oodles of flash and ram.

Now there has been an interesting turnaround with the whole chip shortage for the past years. All the young folk are at a loss, being used to just putting powerful chips all around willy-nilly. So they turn to the old folk like me to figure out designs with less chips, running busses all over and connecting dumb sensors/actuators to a central processing unit.

this post was submitted on 24 May 2024
807 points (98.6% liked)

Programmer Humor

32562 readers
425 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS