Call problem..

Mike Stump mrs@windriver.com
Tue Jun 13 02:31:00 GMT 2000


> 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.


More information about the Gcc-bugs mailing list