#1543: Create PARROT_HOT and PARROT_COLD function annotations
--------------------------+-------------------------------------------------
Reporter: petdance | Owner: petdance
Type: experimental | Status: new
Priority: normal | Milestone:
Component: profiling | Version: 2.2.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1543>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets