freemint / m68k-atari-mint-gcc

Fork of GNU's gcc with support for the m68k-atari-mint target
https://github.com/freemint/m68k-atari-mint-gcc/wiki
Other
27 stars 7 forks source link

Shouldn't m68k target override l1-cache-size ? #13

Closed mikrosk closed 12 months ago

mikrosk commented 3 years ago

Accidentally, I have found this parameter in gcc's --param section (see man gcc):

--param "l1-cache-size=X" (the size of L1 cache, in kilobytes) --param "l1-cache-line-size=Y" (the size of cache line in L1 cache, in bytes)

by default, those are 64 KiB and 512 bytes, respectively. Only a few targets override this number and I wonder why? Especially on our poor 68030 this could make a serious difference. Or am I missing something?

mikrosk commented 12 months ago

Just tried on scummvm --param l1-cache-size=1 --param l1-cache-line-size=16 --param l2-cache-size=0. It had literally zero effect while it should have:

m68k-atari-mintelf-gcc --help=param -Q | grep cache
  --param=l1-cache-line-size=           32
  --param=l1-cache-size=                64
  --param=l2-cache-size=                512

Closing.