Extracting native code from C
Steve Elkins
sgelkins at bellsouth.net
Thu Mar 14 10:26:44 UTC 2002
Anthony Hannan <ajh18 at cornell.edu> writes:
> Below is a small C program that copies some of its machine code to
> dynamic memory and executes it. It works on my Linux-i86. I was
> thinking we could use this technique to dynamically translate bytecodes
> into native code, without using machine-dependent assembly language. I
> would like to find out if this C example works on other platforms. I
> would appreciate people testing it.
sge:71$ uname -a
OpenBSD d8tv0m01 3.0 GENERIC#94 i386
sge:72$ gcc dynmemexec.c
sge:73$ ./a.out
It works!
sge:74$
--
Why bother building any more nuclear warheads until we use the ones we
have?
More information about the Squeak-dev
mailing list
|