Mark Gritter (markgritter) wrote,
Mark Gritter
markgritter

mysteries

Why does gcc require in excess of 3GB of memory to compile an array initializer which is only about 11MB large (22MB in source form?)

(Giving some serious thought to outputting an ELF file instead of C code.)

P.S. My guess: it's building a parse tree of the entire statement before processing it.
Tags: programming
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments