tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Generating Jumps in linked lib to instrument tcc wind


From: grischka
Subject: Re: [Tinycc-devel] Generating Jumps in linked lib to instrument tcc windows exes/dlls
Date: Sat, 18 Sep 2010 12:38:56 +0200
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Simon Lehmayr wrote:
how can I generate jumps (with arguments) into a statically linked library for compiled code?

Look up "gfunc_call".  For example init_putz generates a call to memset:

        vpush_global_sym(&func_old_type, TOK_memset);
        vseti(VT_LOCAL, c);
        vpushi(0);
        vpushi(size);
        gfunc_call(3);

It doesn't matter HOW you finally link the support functions.

-- gr




reply via email to

[Prev in Thread] Current Thread [Next in Thread]