Hello, I’m a bit new to advanced linux and programming stuffs… Can someone explain me why compiling exists and what this process does and how to do it in the principals situations (I’ve heard that you can use the “makepkg” command). Thx to everyone who replied.

  • foremanguy@lemmy.mlOP
    link
    fedilink
    arrow-up
    5
    ·
    7 months ago

    ooh ok, so I’ve always aked myself “what is for the source code?”. If I’ve understand, it’s all the code writes in C, C++, Rust, etc. And then if you want to use the programm you just have to compile the source code. It’s useful for the developer to do not have to compile for every OS. Is that right?

    • EinfachUnersetzlich@lemm.ee
      link
      fedilink
      arrow-up
      5
      ·
      7 months ago

      Yes, but for developers it’s good to not have to program for each CPU architecture/OS.

      I can write some C, C++ or Rust code and compile it for loads of platforms and have it do the same thing (simplified).