Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Execute Code in RAM?

2005-03-10 by ateichtmann

> > My question is, how code can be executed in RAM.
> > How can i call a function in RAM?
> 
> Simply:
> void (*myfunc)();
> myfunc = (void (*)())0x40000000;
> myfunc();

Sorry, does not work...
The compiler does not like the second line.
My problem is, that i don't know how to declare a function, whose 
address can be changed during runtime.
How is the syntax of a working code?

Regards
Arvid

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.