Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 39891
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T14:56:11+00:00 2026-05-10T14:56:11+00:00

Anyone know this compiler feature? It seems GCC support that. How does it work?

  • 0

Anyone know this compiler feature? It seems GCC support that. How does it work? What is the potential gain? In which case it’s good? Inner loops?

(this question is specific, not about optimization in general, thanks)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T14:56:11+00:00Added an answer on May 10, 2026 at 2:56 pm

    It works by placing extra code to count the number of times each codepath is taken. When you compile a second time the compiler uses the knowledge gained about execution of your program that it could only guess at before. There are a couple things PGO can work toward:

    • Deciding which functions should be inlined or not depending on how often they are called.
    • Deciding how to place hints about which branch of an ‘if’ statement should be predicted on based on the percentage of calls going one way or the other.
    • Deciding how to optimize loops based on how many iterations get taken each time that loop is called.

    You never really know how much these things can help until you test it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 495k
  • Answers 495k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer var data = { "elements": [ { "head": "story 1",… May 16, 2026 at 11:21 am
  • Editorial Team
    Editorial Team added an answer I found the answer. I have to remove the _mail.view.frame… May 16, 2026 at 11:21 am
  • Editorial Team
    Editorial Team added an answer A JPanel's default layout is a FlowLayout so you don't… May 16, 2026 at 11:21 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Firstly, this is not a question about repository synchronisation for which there are numerous
I've seen some discussion on why c# does not implement multiple inheritance but very
We have a need to generate Java source code. We do this by modeling
For some reason, I've always assumed that readonly fields have overhead associated with them,
I'm building a interpreter/compiler for a school project (well now its turning into a
I am trying to call the internal Windows NT API function NtOpenProcess. I know
While moving some code around for investigation purposes, I came across a little feature
This call // this._cfg is an NHibernate Configuration instance this._sessionFactory = this._cfg.BuildSessionFactory(); Gives me
I can't seem to find a good resource on this.. I am trying to
This is entity framework 4. CurrentProperty.FMVHistories.Add(FMVPresenter.GetFMVHistoryObject()); DataLayer.AccrualTrackingEntities repository = new AccrualTrackingEntities(); repository.Properties.AddObject(CurrentProperty); repository.SaveChanges(); Right

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.