this post was submitted on 25 Feb 2024
415 points (97.5% liked)

linuxmemes

20880 readers
5 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 38 points 8 months ago (7 children)

I've used mingw in the past, the exe usually is 10x the size and wants the entire binary of any library used as well and first requires you to download the source windows version of the lib and link it. Meaning a small SDL2 project on Linux was I think 100kib while on windows it was 1mib + 2.5 mib

[โ€“] [email protected] 3 points 8 months ago* (last edited 8 months ago) (3 children)

If you have WSL set up run

strip your.exe

It often reduces the size a fair bit

[โ€“] [email protected] 1 points 8 months ago (2 children)

Doesn't it work in Linux normally?

[โ€“] [email protected] 1 points 8 months ago (1 children)

Oh sure, just figured this was all done under windows.

[โ€“] [email protected] 1 points 8 months ago

Nope I used a GitHub codespace since I didn't have a C compiler on the windows installation I was stuck with.

load more comments (3 replies)