Re: Sequence of access to passes.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ankit Mahanot wrote:
> @Ian Lance Taylor - I dont want to shuffle through passes. Instead
> I want to add an algo that uses these passes.
>
> GREP is fine. I thought there may be some other easier &
> user-friendly way :( Actually I wanted to know how control is going
> to passes.c via which FILES not FUNCTION CALLS.  I'll give csope a
> try anyways.
>
> @John Jensen - Ian is right about -ftime-report. Actually I am an
> ameteur so I used the wrong word PROFILING. I needed the time an
> optimization pass is taking. So I think ftime-report should work.
>
> Question remaining is : Q - Where do I find implementations of O1
> O2 O3 ?? In which file ?? I looked into gcc/gcc/c-opts.c. I could
> find most of the options except O1 O2 etc :( If I can understand
> how O1 O2 etc is implemented, then may be I can implement my algo
> in a similar way.
>
- From what i know the -On, flag is an alias to a set of optimizations:

https://www.redhatrenewals.com/docs/manuals/enterprise/RHEL-3-Manual/gcc/optimize-options.html
https://www.redhatrenewals.com/docs/manuals/enterprise/RHEL-3-Manual/gcc/invoking-gcc.html

They are useful links, and i think most optimizations passes are files
like tree-*.c. I don't know enough of the middle end at the moment in
specifics but taking some digging around in toplev.c helps.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqp/LAACgkQAhcOgIaQQ2GaFgCfZCbH+qzKSCwbr3HekNqybLQg
MG0AnR+wX+5LiOsL5hMBLSWJqFSQgpvy
=F5Pp
-----END PGP SIGNATURE-----


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux