public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* How to instrument an initcall?
@ 2008-02-26  3:32 Haifeng He
  0 siblings, 0 replies; only message in thread
From: Haifeng He @ 2008-02-26  3:32 UTC (permalink / raw)
  To: gcc-help

Hi,

I want to insert an initcall in a given program. The initcall should be executed
before any real computation starts. For example, given program as
main () {
  ...
}

I would like to transform to
main () {
  my_initcall();
}

I know how to add a call instruction in gimple tree but I am not sure
how to insert
the call inst into the right place. Any suggestion?

Thank

Haifeng

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-26  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-26  3:32 How to instrument an initcall? Haifeng He

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).