Ticket #1543 (closed experimental: fixed)

Opened 5 years ago

Last modified 5 years ago

Create PARROT_HOT and PARROT_COLD function annotations

Reported by: petdance Owned by: petdance
Priority: normal Milestone:
Component: profiling Version: 2.2.0
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

 http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html

"The hot attribute is used to inform the compiler that a function is a hot spot of the compiled program. The function is optimized more aggressively and on many target it is placed into special subsection of the text section so all hot functions appears close together improving locality."

There's also the cold attribute.

Other compilers likely have optimizations that can be used here as well.

Change History

Changed 5 years ago by petdance

  • status changed from new to assigned

r45410 adds support for PARROT_HOT and PARROT_COLD at the compiler macro level, but the headerizer does not yet support them.

Changed 5 years ago by petdance

r45411 adds support in the headerizer for PARROT_HOT and PARROT_COLD.

I welcome testing of their effect on optimization.

Changed 5 years ago by petdance

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.