(no subject)

Date: 2009-12-20 09:59 pm (UTC)
From: [identity profile] lightning-rose.livejournal.com

"optimize for instruction count" makes sense in a universe where a megabyte is a huge (and hugely expensive) amount of RAM. Especially on a machine with virtual memory* and poor page swapping algorithms. A program that exceeded it's available RAM by even a few bytes could take a horrible hit in performance due to disk swapping. A less than speed optimal program may well outperform a speed optimized program if stays resident in RAM.


*) Virtual memory in it's original sense, not today's definition which is mostly just memory management.

(no subject)

Date: 2009-12-22 01:08 am (UTC)
From: [identity profile] mentalguy.livejournal.com
These days, replace "RAM" with "instruction cache". Cache misses really hurt.

(no subject)

Date: 2009-12-27 05:30 pm (UTC)
From: [identity profile] lightning-rose.livejournal.com

Indeed. I have disabled cache on pc's just to see how much the performance drops. Tip: don't do this with an o/s that boots into a gui.

I've also done a fair amount of embedded kernel development so I've benchmarked the differences between cache on and cache off at boot time.

(no subject)

Date: 2009-12-22 07:54 pm (UTC)
From: [identity profile] kragen.livejournal.com
"optimize for smallest code size" makes more sense in that context, and the comment you're replying to asserts that "optimize for instruction count" tended to produce bigger code than "optimize for smallest code size", which is unsurprising. (The surprising part is that "optimize for smallest code size" existed.)

(no subject)

Date: 2009-12-27 05:39 pm (UTC)
From: [identity profile] lightning-rose.livejournal.com

You're right, I mis-read the comment. my above comment should have been in regards to "optimize for smallest code size".

(no subject)

Date: 2009-12-29 11:30 am (UTC)
vatine: Generated with some CL code and a hand-designed blackletter font (Default)
From: [personal profile] vatine
It would've made sense, if it wasn't for the fact that the really powerful instructions (as in "did lots of stuff") usually ended up being MASSIVELY huge, memory-wise. We're talking machine instructions in the multiple tens of bytes, here.

Profile

maradydd: (Default)
maradydd

September 2010

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26 27282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags