• 9488fcea02a9@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Forgive my ignorance, but do you have to compile for old architectures on the actual old CPUs? Like were they compiling debian for 486 on actual 486 cpus?

    • PhilipTheBucket@ponder.cat
      link
      fedilink
      arrow-up
      2
      ·
      1 day ago

      It’s a little different scenario: You don’t need to have a 486 to compile the Linux kernel for a 486. It’s not even cross compilation, it’s just setting particular flags and how to do the compile and what processor features to enable or not. It’s probably useful to test it periodically on the actual processor but in a strict sense it’s not needed.

      You do, in general, need to be running on a 68000 to compile parts of the actual whole OS for 68000, since so much stuff is different or custom for each architecture and there is plenty of work involved without trying to introduce emulation or cross-compilation into the mix in any way.

    • remotelove@lemmy.ca
      link
      fedilink
      arrow-up
      5
      ·
      2 days ago

      You can generally cross compile across architectures, but there can be instruction or build nuances that can cause hiccups. Also, you need to build everything against the target architecture as well, not just the kernel.