how to specify architecture information to gcc

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ddmetro
    New Member
    • Sep 2009
    • 1

    how to specify architecture information to gcc

    Hi All,
    Our project is to optimize gcc's instruction scheduling. It requires us to specify architecture information
    (basically number of cycles per instruction, stall and branch delays)
    to gcc, to optimize structural hazard detection.
    Problem: Is there any specific format in which we can specify this
    information to gcc? Is it possible to embed this additional
    architecture specific detail, in .md files?

    Target language for which optimization is being done: C
    Target machine architecture: i686
    GCC version: 4.4.1

    If none of the above options work, we were planning to put
    the information manually in a file and make gcc read it each time it
    loads. Any suggestions/comments on this approach?

    Couldnt find a related thread. Hence a new one.

    Thanking All,
    - Dhiraj.
Working...