This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Call problem..
- To: bug-gcc at gnu dot org, kanata at celab1 dot ee dot ntou dot edu dot tw
- Subject: Re: Call problem..
- From: Mike Stump <mrs at windriver dot com>
- Date: Tue, 13 Jun 2000 02:31:43 -0700 (PDT)
> Date: Tue, 13 Jun 2000 17:21:22 +0800
> From: kanata <kanata@celab1.ee.ntou.edu.tw>
> To: bug-gcc@gnu.org
> If I want to call a specified address, how can I do it?
> I have use this way
> (char *)(0x12345678)();
> But compiler said "called object is not a function"...
> So How can I call a function without define?
(char *) is not a pointer to function, it is a pointer to a character.
A pointer to a function would be (void (*)()). This isn't a bug in gcc,
so this list is inappropriate. gcc-help would be better.