This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/66682] New: Lots of macro expansion, very slow compilation


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66682

            Bug ID: 66682
           Summary: Lots of macro expansion, very slow compilation
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cr88192 at gmail dot com
  Target Milestone: ---

Created attachment 35857
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35857&action=edit
stand-alone code which demonstrates issue

Some code with large amounts of macro-expansion (and producing a large number
of small functions) takes an inordinate amount of time to compile with GCC (the
example, around 3 minutes with 4.5.2 and 4.5.3, and 8 minutes with 4.8.2).

However, with several other compilers, the same code compiles within a few
seconds.

The code fragment represents part of a native function-call dispatcher
mechanism from an interpreter (a lot of the interpreter is heavily macro'ed
like this, using macros to produce type-specialized versions of operations).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]