Re: generated function
- From: Willem <willem@xxxxxxxx>
- Date: Mon, 28 Aug 2006 17:32:21 +0000 (UTC)
shaanxxx wrote:
) I want to write a programme. I explain what it does.
) 1) It generates C code . // i know how to do it
) 2) It compiles that generated code. // i know how to do it.
)
) IMPORTANT ONE :
) 3) Now It calls one of the functions in generated code. // need help on
) this.
There are (at least) two ways to do this:
one: Add some extra code, that parses the commandline, then calls the
desired function with the desired arguments, and then displays the value
that is returned. This way, you obviously can only pass and return simple
values.
two: compile it as a library and dynamically load it at runtime. How to do
this exactly differs between operating systems, but it enables you to call
the function directly, have it pass anything you want, and return anything
you want.
SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT
.
- References:
- generated function
- From: shaanxxx
- generated function
- Prev by Date: Re: Code Comprehension
- Next by Date: Re: Code Comprehension
- Previous by thread: Re: generated function
- Next by thread: VB6.0 and Constructors
- Index(es):