Menu

#1 fat "hello word" regression

1.0
closed
nobody
None
2022-05-16
2022-05-16
No

last week gcc binaries (12.1.0, 11.3.0) produce a bit fatter executables compare to 11.1.0

#include <stdio.h>

int main() {
    printf("Hello");
    return(0);
}

gcc -m32 -s hello.c

in case of gcc 11.1.0 : executable size is 11264 bytes

Fresh one produced 35328 bytes

Discussion

  • Daniel Starke

    Daniel Starke - 2022-05-16

    mingw64-64 was updated from v7.0.0 to v10.0.0. That means that __USE_MINGW_ANSI_STDIO is defined 1 by default now due to this commit:
    https://github.com/mingw-w64/mingw-w64/commit/bfd33f6c0ec5e652cc9911857dd1492ece8d8383
    You can revert the non-standard compliant behavior by passing -D__USE_MINGW_ANSI_STDIO=0 on command-line.

     
    👍
    1
  • Daniel Starke

    Daniel Starke - 2022-05-16
    • status: open --> closed
     

Log in to post a comment.