load a small program into memory, point a function pointer at it at run it as a function?
This is a discussion on would this work? within the C Programming forums, part of the General Programming Boards category; load a small program into memory, point a function pointer at it at run it as a function?...
load a small program into memory, point a function pointer at it at run it as a function?
Acos is good
They're called DLLs in windows programming, shared libraries in unix, and I think overlays in DOS
What did you have in mind.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
Imthinking dos. so could I load it into a big array and point a pointer at the start location of the array and then execute it like a function, or would I have to do some weird freaky stuff?
Acos is good
> or would I have to do some weird freaky stuff?
Perhaps.
Some compilers (the better DOS ones at least) allowed you to create overlays - but this was always a highly compiler specific thing, so you would need to do some reading (look for writing large programs and overlays).
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.